Merge branch 'master' into joh/completionOverwrite

This commit is contained in:
Johannes Rieken
2019-10-24 12:34:52 +02:00
committed by GitHub
135 changed files with 1742 additions and 2265 deletions

View File

@@ -348,7 +348,7 @@ class CodeActionAdapter {
only: context.only ? new CodeActionKind(context.only) : undefined
};
return asPromise(() => this._provider.provideCodeActions(doc, ran, codeActionContext, token)).then(commandsOrActions => {
return asPromise(() => this._provider.provideCodeActions(doc, ran, codeActionContext, token)).then((commandsOrActions): extHostProtocol.ICodeActionListDto | undefined => {
if (!isNonEmptyArray(commandsOrActions) || token.isCancellationRequested) {
return undefined;
}
@@ -390,7 +390,7 @@ class CodeActionAdapter {
}
}
return <extHostProtocol.ICodeActionListDto>{ cacheId, actions };
return { cacheId, actions };
});
}