提交 09279755 编写于 作者: M Matt Bierner

Mark more quick fixes as preferred

#62110
https://github.com/Microsoft/TypeScript/issues/29450
上级 4a39da97
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册