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

This commit is contained in:
Matt Bierner
2019-08-14 17:05:13 -07:00
parent d726f427e0
commit 2c4edeb617
@@ -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;
}