You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or 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
Instead of keeping reference file reasons tracking, we also keep track of all reasons file is included in the program.
The configFileSpecs are stored on tsconfigFile so we dont have to pass them around any more.
The reasons are used to write explanations for files when new option --explainFiles is specified and program can use it too (earlier program wasnt aware of these)
They are also used to report errors about the file eg its not in rootDir or doesn't match casing etc
Because it is used to report errors while file processing is going on and program is still under construction, we store the metadata for errors instead of converting them in diagnostic right away. This is so we can reuse this data when program is completely reused and still give error locations at correct position.(Because the related information location can change without change but the diagnostic can be in different file)
D:\github\TypeScript\src\services>tsc --explainFiles
C:/Users/Ryan/AppData/Roaming/npm/node_modules/typescript/lib/lib.es5.d.ts
Library 'lib.es5.d.ts' specified in compilerOptions
C:/Users/Ryan/AppData/Roaming/npm/node_modules/typescript/lib/lib.es2015.generator.d.ts
Library 'lib.es2015.generator.d.ts' specified in compilerOptions
C:/Users/Ryan/AppData/Roaming/npm/node_modules/typescript/lib/lib.es2015.iterable.d.ts
Library 'lib.es2015.iterable.d.ts' specified in compilerOptions
Library referenced via 'es2015.iterable' from file 'C:/Users/Ryan/AppData/Roaming/npm/node_modules/typescript/lib/lib.es2015.generator.d.ts'
C:/Users/Ryan/AppData/Roaming/npm/node_modules/typescript/lib/lib.es2015.symbol.d.ts
Library referenced via 'es2015.symbol' from file 'C:/Users/Ryan/AppData/Roaming/npm/node_modules/typescript/lib/lib.es2015.iterable.d.ts'
../../built/local/shims.d.ts
Output from referenced project '../shims/tsconfig.json' included because '--outFile' specified
../../node_modules/@types/microsoft__typescript-etw/index.d.ts
Imported via "@microsoft/typescript-etw" from file '../../built/local/compiler.d.ts' with packageId '@types/microsoft__typescript-etw/index.d.ts@0.1.1'
../../built/local/compiler.d.ts
Output from referenced project '../compiler/tsconfig.json' included because '--outFile' specified
../../built/local/jsTyping.d.ts
Output from referenced project '../jsTyping/tsconfig.json' included because '--outFile' specified
types.ts
Part of 'files' list in tsconfig.json
utilities.ts
Part of 'files' list in tsconfig.json
classifier.ts
Part of 'files' list in tsconfig.json
stringCompletions.ts
Part of 'files' list in tsconfig.json
completions.ts
Part of 'files' list in tsconfig.json
documentHighlights.ts
Part of 'files' list in tsconfig.json
documentRegistry.ts
Part of 'files' list in tsconfig.json
importTracker.ts
Part of 'files' list in tsconfig.json
findAllReferences.ts
Part of 'files' list in tsconfig.json
callHierarchy.ts
Part of 'files' list in tsconfig.json
getEditsForFileRename.ts
Part of 'files' list in tsconfig.json
goToDefinition.ts
Part of 'files' list in tsconfig.json
jsDoc.ts
Part of 'files' list in tsconfig.json
navigateTo.ts
Part of 'files' list in tsconfig.json
(many more, truncated)
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
--explainFiles
is specified and program can use it too (earlier program wasnt aware of these)rootDir
or doesn't match casing etcFixes #33515