mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +01:00
Always send CodeActionTriggerKind (#198364)
Makes us always send this along instead of sometimes sending undefined
This commit is contained in:
@@ -544,10 +544,7 @@ class TypeScriptRefactorProvider implements vscode.CodeActionProvider<TsCodeActi
|
||||
}
|
||||
|
||||
private toTsTriggerReason(context: vscode.CodeActionContext): Proto.RefactorTriggerReason | undefined {
|
||||
if (context.triggerKind === vscode.CodeActionTriggerKind.Invoke) {
|
||||
return 'invoked';
|
||||
}
|
||||
return undefined;
|
||||
return context.triggerKind === vscode.CodeActionTriggerKind.Invoke ? 'invoked' : 'implicit';
|
||||
}
|
||||
|
||||
private *convertApplicableRefactors(
|
||||
|
||||
Reference in New Issue
Block a user