mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
@@ -335,7 +335,7 @@ class TypeScriptRefactorProvider implements vscode.CodeActionProvider<TsCodeActi
|
||||
}
|
||||
|
||||
private toTsTriggerReason(context: vscode.CodeActionContext): Proto.RefactorTriggerReason | undefined {
|
||||
if (context.triggerKind === vscode.CodeActionTriggerKind.Manual) {
|
||||
if (context.triggerKind === vscode.CodeActionTriggerKind.Invoke) {
|
||||
return 'invoked';
|
||||
}
|
||||
return undefined;
|
||||
@@ -389,7 +389,7 @@ class TypeScriptRefactorProvider implements vscode.CodeActionProvider<TsCodeActi
|
||||
return false;
|
||||
}
|
||||
|
||||
return context.triggerKind === vscode.CodeActionTriggerKind.Manual;
|
||||
return context.triggerKind === vscode.CodeActionTriggerKind.Invoke;
|
||||
}
|
||||
|
||||
private static getKind(refactor: Proto.RefactorActionInfo) {
|
||||
|
||||
Reference in New Issue
Block a user