Make sure we compare fully normalized error codes when checking for fix all actions

This commit is contained in:
Matt Bierner
2019-08-14 14:54:09 -07:00
parent d726f427e0
commit 2c4edeb617

View File

@@ -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;
}