Add return type for provideCompletionItems method.

This commit is contained in:
yadu 2018-12-13 15:48:18 +08:00
parent 25a05667f3
commit 8029ba6344
2 changed files with 2 additions and 2 deletions

2
index.d.ts vendored
View File

@ -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 {

View File

@ -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,