Add return type for provideCompletionItems method.
This commit is contained in:
parent
25a05667f3
commit
8029ba6344
|
@ -2,7 +2,7 @@ import {editor, Position, CancellationToken, languages} from "monaco-editor";
|
|||
|
||||
declare class SqlCompletionItemProvider {
|
||||
public triggerCharacters: string[];
|
||||
provideCompletionItems(model: editor.ITextModel, position: Position, context: languages.CompletionContext, token: CancellationToken);
|
||||
provideCompletionItems(model: editor.ITextModel, position: Position, context: languages.CompletionContext, token: CancellationToken) : languages.ProviderResult<languages.CompletionList>;
|
||||
}
|
||||
|
||||
declare class ErrorMarkProvider {
|
||||
|
|
|
@ -4,7 +4,7 @@ import {editor, Position, CancellationToken, languages} from "monaco-editor";
|
|||
export class SqlCompletionItemProvider {
|
||||
public triggerCharacters: string[] = [" ","."];
|
||||
|
||||
provideCompletionItems(model: editor.IReadOnlyModel, position: Position, context: languages.CompletionContext, token: CancellationToken) {
|
||||
provideCompletionItems(model: editor.IReadOnlyModel, position: Position, context: languages.CompletionContext, token: CancellationToken) : languages.ProviderResult<languages.CompletionList> {
|
||||
const range = {
|
||||
startLineNumber: 1,
|
||||
startColumn: 1,
|
||||
|
|
Reference in New Issue