File tree Expand file tree Collapse file tree
extensions/typescript-language-features/src/features Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ const autoFixableDiagnosticCodes = new Set<number>([
2222
2323class TypeScriptAutoFixProvider implements vscode . CodeActionProvider {
2424
25+ private static readonly kind = vscode . CodeActionKind . SourceFixAll . append ( 'ts' ) ;
26+
2527 public static readonly metadata : vscode . CodeActionProviderMetadata = {
26- providedCodeActionKinds : [ vscode . CodeActionKind . SourceFixAll ]
28+ providedCodeActionKinds : [ TypeScriptAutoFixProvider . kind ]
2729 } ;
2830
2931 constructor (
@@ -82,7 +84,7 @@ class TypeScriptAutoFixProvider implements vscode.CodeActionProvider {
8284 const { edit, fixedDiagnostics } = autoFixResponse ;
8385 const codeAction = new vscode . CodeAction (
8486 localize ( 'autoFix.label' , 'Auto fix' ) ,
85- vscode . CodeActionKind . SourceFixAll ) ;
87+ TypeScriptAutoFixProvider . kind ) ;
8688 codeAction . edit = edit ;
8789 codeAction . diagnostics = fixedDiagnostics ;
8890
You can’t perform that action at this time.
0 commit comments