Skip to content

Commit

Permalink
Mark more quick fixes as preferred
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Jan 24, 2019
1 parent 4a39da9 commit 0927975
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,13 @@ class TypeScriptQuickFixProvider implements vscode.CodeActionProvider {
}
}

const preferredFixes = new Set(['spelling']);
const preferredFixes = new Set([
'constructorForDerivedNeedSuperCall',
'fixClassIncorrectlyImplementsInterface',
'fixUnreachableCode',
'spelling',
'unusedIdentifier',
]);
function isPreferredFix(tsAction: Proto.CodeFixAction): boolean {
return preferredFixes.has(tsAction.fixName);
}
Expand Down

0 comments on commit 0927975

Please sign in to comment.