Merge pull request #2 from luomoyuyi/AddReturnTypeForAPIMethod

Add return type for provideCompletionItems method.
This commit is contained in:
Yanzhe Du 2018-12-13 16:11:00 +08:00 committed by GitHub
commit a57966e287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,