Skip to content

Commit 359823b

Browse files
authored
ignore request for codefixes with no error codes (microsoft#14215)
1 parent dca368b commit 359823b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/session.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,9 @@ namespace ts.server {
14121412
}
14131413

14141414
private getCodeFixes(args: protocol.CodeFixRequestArgs, simplifiedResult: boolean): protocol.CodeAction[] | CodeAction[] {
1415+
if (args.errorCodes.length === 0) {
1416+
return undefined;
1417+
}
14151418
const { file, project } = this.getFileAndProjectWithoutRefreshingInferredProjects(args);
14161419

14171420
const scriptInfo = project.getScriptInfoForNormalizedPath(file);

0 commit comments

Comments
 (0)