Skip to content

Keep track of why files are in the program #40011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Dec 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
462d1c2
--explainFiles currently hardcoded
sheetalkamat Aug 10, 2020
69c404e
Move configFileSpecs to configFile so it can be used in program later
sheetalkamat Feb 4, 2020
8cc74e1
Explain root file inclusion reason and explain include files in the log
sheetalkamat Feb 5, 2020
ada028d
Baseline explainFiles
sheetalkamat Aug 11, 2020
b2f8929
Fix incorrectly reporting of file list two times in --b mode
sheetalkamat Aug 11, 2020
beac081
Fix unnecessary new lines in output represented incorretly in the bas…
sheetalkamat Aug 11, 2020
5761f24
More tests
sheetalkamat Aug 11, 2020
ab73d96
More cleaning up
sheetalkamat Aug 11, 2020
52f9df4
Keep listing files in same order as list files, just add explaination
sheetalkamat Aug 12, 2020
5287168
Merge branch 'master' into explainFiles
sheetalkamat Sep 24, 2020
aaee0c2
Merge branch 'master' into explainFiles
sheetalkamat Sep 24, 2020
afc5293
Fix double listing of file names when the program has errors
sheetalkamat Sep 24, 2020
c25b0ba
Make diagnostic chains for file include reason
sheetalkamat Sep 25, 2020
0ecf2ea
Add explaination for the file include to diagnostics for program
sheetalkamat Sep 25, 2020
f5566d4
Harness ls incorrectly adding tsconfig as the root file
sheetalkamat Sep 29, 2020
cc40fd8
Fix incorrect use of path for calculating absolute path
sheetalkamat Sep 29, 2020
f90f7b7
Merge branch 'master' into explainFiles
sheetalkamat Sep 29, 2020
7ab1483
Fix the root file in fourslash
sheetalkamat Sep 30, 2020
f78adcf
Test project service options merge
sheetalkamat Sep 30, 2020
6f0f075
Add config file name to matched by include explaination
sheetalkamat Sep 30, 2020
237809f
Add test for when the file changes and program is reused completely b…
sheetalkamat Sep 30, 2020
69fd49c
Handle file preprocessing diagnostics updates when program is reused …
sheetalkamat Sep 30, 2020
d79c94c
Moved types to types.ts
sheetalkamat Sep 30, 2020
5c5a528
Refactoring and cleanup
sheetalkamat Sep 30, 2020
652dbd3
More cleanup
sheetalkamat Sep 30, 2020
5e30aab
More refatoring
sheetalkamat Sep 30, 2020
f414531
Merge branch 'master' into explainFiles
sheetalkamat Nov 3, 2020
5021088
Handle synthetic imports
sheetalkamat Nov 4, 2020
3a4613e
Merge branch 'master' into explainFiles
sheetalkamat Dec 3, 2020
87ca884
Merge branch 'master' into explainFiles
sheetalkamat Dec 3, 2020
de22f1e
Merge branch 'master' into explainFiles
sheetalkamat Dec 4, 2020
975b07d
Merge branch 'master' into explainFiles
sheetalkamat Dec 4, 2020
0c00d40
Baselines after merge
sheetalkamat Dec 5, 2020
91be6e4
Merge branch 'master' into explainFiles
sheetalkamat Dec 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
236 changes: 109 additions & 127 deletions src/compiler/commandLineParser.ts

Large diffs are not rendered by default.

156 changes: 156 additions & 0 deletions src/compiler/diagnosticMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,158 @@
"category": "Error",
"code": 1392
},
"Imported via {0} from file '{1}'": {
"category": "Message",
"code": 1393
},
"Imported via {0} from file '{1}' with packageId '{2}'": {
"category": "Message",
"code": 1394
},
"Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions": {
"category": "Message",
"code": 1395
},
"Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions": {
"category": "Message",
"code": 1396
},
"Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions": {
"category": "Message",
"code": 1397
},
"Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions": {
"category": "Message",
"code": 1398
},
"File is included via import here.": {
"category": "Message",
"code": 1399
},
"Referenced via '{0}' from file '{1}'": {
"category": "Message",
"code": 1400
},
"File is included via reference here.": {
"category": "Message",
"code": 1401
},
"Type library referenced via '{0}' from file '{1}'": {
"category": "Message",
"code": 1402
},
"Type library referenced via '{0}' from file '{1}' with packageId '{2}'": {
"category": "Message",
"code": 1403
},
"File is included via type library reference here.": {
"category": "Message",
"code": 1404
},
"Library referenced via '{0}' from file '{1}'": {
"category": "Message",
"code": 1405
},
"File is included via library reference here.": {
"category": "Message",
"code": 1406
},
"Matched by include pattern '{0}' in '{1}'": {
"category": "Message",
"code": 1407
},
"File is matched by include pattern specified here.": {
"category": "Message",
"code": 1408
},
"Part of 'files' list in tsconfig.json": {
"category": "Message",
"code": 1409
},
"File is matched by 'files' list specified here.": {
"category": "Message",
"code": 1410
},
"Output from referenced project '{0}' included because '{1}' specified": {
"category": "Message",
"code": 1411
},
"Output from referenced project '{0}' included because '--module' is specified as 'none'": {
"category": "Message",
"code": 1412
},
"File is output from referenced project specified here.": {
"category": "Message",
"code": 1413
},
"Source from referenced project '{0}' included because '{1}' specified": {
"category": "Message",
"code": 1414
},
"Source from referenced project '{0}' included because '--module' is specified as 'none'": {
"category": "Message",
"code": 1415
},
"File is source from referenced project specified here.": {
"category": "Message",
"code": 1416
},
"Entry point of type library '{0}' specified in compilerOptions": {
"category": "Message",
"code": 1417
},
"Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'": {
"category": "Message",
"code": 1418
},
"File is entry point of type library specified here.": {
"category": "Message",
"code": 1419
},
"Entry point for implicit type library '{0}'": {
"category": "Message",
"code": 1420
},
"Entry point for implicit type library '{0}' with packageId '{1}'": {
"category": "Message",
"code": 1421
},
"Library '{0}' specified in compilerOptions": {
"category": "Message",
"code": 1422
},
"File is library specified here.": {
"category": "Message",
"code": 1423
},
"Default library": {
"category": "Message",
"code": 1424
},
"Default library for target '{0}'": {
"category": "Message",
"code": 1425
},
"File is default library for target specified here.": {
"category": "Message",
"code": 1426
},
"Root file specified for compilation": {
"category": "Message",
"code": 1427
},
"File is output of project reference source '{0}'": {
"category": "Message",
"code": 1428
},
"File redirects to file '{0}'": {
"category": "Message",
"code": 1429
},
"The file is in the program because:": {
"category": "Message",
"code": 1430
},
"The types of '{0}' are incompatible between these types.": {
"category": "Error",
"code": 2200
Expand Down Expand Up @@ -4748,6 +4900,10 @@
"category": "Error",
"code": 6504
},
"Print names of files and the reason they are part of the compilation.": {
"category": "Message",
"code": 6505
},
"Require undeclared properties from index signatures to use element accesses.": {
"category": "Error",
"code": 6803
Expand Down
Loading