mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
Make sure we compare fully normalized error codes when checking for fix all actions
This commit is contained in:
@@ -290,7 +290,8 @@ class TypeScriptQuickFixProvider implements vscode.CodeActionProvider {
|
||||
if (x === diagnostic) {
|
||||
return false;
|
||||
}
|
||||
return x.code === diagnostic.code || fixAllErrorCodes.get(x.code as number) === diagnostic.code;
|
||||
return x.code === diagnostic.code
|
||||
|| (fixAllErrorCodes.has(x.code as number) && fixAllErrorCodes.get(x.code as number) === fixAllErrorCodes.get(diagnostic.code as number));
|
||||
})) {
|
||||
return results;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user