-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lazy calculation of expensive file explaining diagnsotics and some ca…
…ching to be used to share the diagnostic data (#58398)
- Loading branch information
1 parent
2070713
commit fd81d04
Showing
49 changed files
with
8,088 additions
and
170 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/testRunner/unittests/helpers/forceConsistentCasingInFileNames.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { dedent } from "../../_namespaces/Utils"; | ||
import { jsonToReadableText } from "../helpers"; | ||
import { | ||
FsContents, | ||
libContent, | ||
} from "./contents"; | ||
import { libFile } from "./virtualFileSystemWithWatch"; | ||
|
||
export function getFsContentsForMultipleErrorsForceConsistentCasingInFileNames(): FsContents { | ||
return { | ||
"/home/src/projects/project/src/struct.d.ts": dedent` | ||
import * as xs1 from "fp-ts/lib/Struct"; | ||
import * as xs2 from "fp-ts/lib/struct"; | ||
import * as xs3 from "./Struct"; | ||
import * as xs4 from "./struct"; | ||
`, | ||
"/home/src/projects/project/src/anotherFile.ts": dedent` | ||
import * as xs1 from "fp-ts/lib/Struct"; | ||
import * as xs2 from "fp-ts/lib/struct"; | ||
import * as xs3 from "./Struct"; | ||
import * as xs4 from "./struct"; | ||
`, | ||
"/home/src/projects/project/src/oneMore.ts": dedent` | ||
import * as xs1 from "fp-ts/lib/Struct"; | ||
import * as xs2 from "fp-ts/lib/struct"; | ||
import * as xs3 from "./Struct"; | ||
import * as xs4 from "./struct"; | ||
`, | ||
"/home/src/projects/project/tsconfig.json": jsonToReadableText({}), | ||
"/home/src/projects/project/node_modules/fp-ts/lib/struct.d.ts": `export function foo(): void`, | ||
[libFile.path]: libContent, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.