ignore request for codefixes with no error codes (#14215)
This commit is contained in:
parent
dca368b719
commit
359823b4be
1 changed files with 3 additions and 0 deletions
|
@ -1412,6 +1412,9 @@ namespace ts.server {
|
|||
}
|
||||
|
||||
private getCodeFixes(args: protocol.CodeFixRequestArgs, simplifiedResult: boolean): protocol.CodeAction[] | CodeAction[] {
|
||||
if (args.errorCodes.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
const { file, project } = this.getFileAndProjectWithoutRefreshingInferredProjects(args);
|
||||
|
||||
const scriptInfo = project.getScriptInfoForNormalizedPath(file);
|
||||
|
|
Loading…
Reference in a new issue