mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Make getSupportedCodeFixes plugin test such that we dont need to update its baseline for every new error (#52596)
This commit is contained in:
parent
ea47fb1405
commit
ddadea1732
@ -194,7 +194,8 @@ describe("unittests:: tsserver:: plugins overriding getSupportedCodeFixes", () =
|
||||
case "/b.ts":
|
||||
return ["b"];
|
||||
default:
|
||||
return info.languageService.getSupportedCodeFixes(fileName);
|
||||
// Make this stable list of single item so we dont have to update the baseline for every additional error
|
||||
return [info.languageService.getSupportedCodeFixes(fileName)[0]];
|
||||
}
|
||||
};
|
||||
return proxy;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user