Add code action trigger to proposed API

#50248
This commit is contained in:
Matt Bierner
2018-05-21 16:19:00 -07:00
parent cdea1bdc99
commit 0a0d3d5e45
10 changed files with 62 additions and 15 deletions

View File

@@ -126,7 +126,7 @@ export default class TypeScriptRefactorProvider implements vscode.CodeActionProv
return [];
}
if (!(rangeOrSelection instanceof vscode.Selection) || rangeOrSelection.isEmpty) {
if (!(rangeOrSelection instanceof vscode.Selection) || (rangeOrSelection.isEmpty && context.triggerKind !== vscode.CodeActionTrigger.Manual)) {
return [];
}