TS source actions should not be blocked by pending action requests (#177737)

Fixes #164876
This commit is contained in:
Matt Bierner
2023-03-21 10:29:56 -07:00
committed by GitHub
parent 688bbb7828
commit 26e7b9a3bd

View File

@@ -219,10 +219,6 @@ class TypeScriptAutoFixProvider implements vscode.CodeActionProvider {
}
const actions = this.getFixAllActions(context.only);
if (this.client.bufferSyncSupport.hasPendingDiagnostics(document.uri)) {
return actions;
}
const diagnostics = this.diagnosticsManager.getDiagnostics(document.uri);
if (!diagnostics.length) {
// Actions are a no-op in this case but we still want to return them