13 lines
529 B
TypeScript
13 lines
529 B
TypeScript
|
|
import * as vscode from 'vscode';
|
||
|
|
import { CompletionStrategy } from './CompletionStrategy';
|
||
|
|
|
||
|
|
export class LocalContextCompletion implements CompletionStrategy {
|
||
|
|
|
||
|
|
public provideCompletions(document: vscode.TextDocument, position: vscode.Position, linePrefix: string): vscode.CompletionItem[] | undefined {
|
||
|
|
// TODO für Phase 2:
|
||
|
|
// 1. Regex Suche im Dokument nach ":=" (Variablen tracken)
|
||
|
|
// 2. Projektweite Suche nach "define" Methoden für Autocomplete
|
||
|
|
|
||
|
|
return undefined;
|
||
|
|
}
|
||
|
|
}
|