Skip to content

Commit c77ea9e

Browse files
vladimaArthur Ozga
authored and
Arthur Ozga
committed
ignore request for codefixes with no error codes (microsoft#14215)
1 parent a2f61a8 commit c77ea9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/session.ts

+3
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)