Merge pull request #41063 from mjbvz/move-code-action-from-proposed

Move new CodeAction Api from proposed to vscode.d.ts
This commit is contained in:
Johannes Rieken
2018-01-03 12:03:33 +01:00
committed by GitHub
5 changed files with 48 additions and 81 deletions

View File

@@ -289,9 +289,8 @@ class CodeActionAdapter {
}
});
return asWinJsPromise(token => this._provider.provideCodeActions2
? this._provider.provideCodeActions2(doc, ran, { diagnostics: allDiagnostics }, token)
: this._provider.provideCodeActions(doc, ran, { diagnostics: allDiagnostics }, token)
return asWinJsPromise(token =>
this._provider.provideCodeActions(doc, ran, { diagnostics: allDiagnostics }, token)
).then(commandsOrActions => {
if (isFalsyOrEmpty(commandsOrActions)) {
return undefined;