Wesley Wigham
d58b1f664b
mark error type in baselines very not-aggressively ( #26346 )
2018-08-17 15:45:14 -07:00
Andy
60b8f8c206
Remove unnecessary callback in runBaseline ( #26500 )
2018-08-17 12:51:30 -07:00
Sheetal Nandi
0f97620b9c
Merge pull request #25884 from Microsoft/optimizeOpenExternalProject
...
Delay load configured project referenced from external project when opening it
2018-08-17 12:26:14 -07:00
Sheetal Nandi
7e117f2707
Check large file size only for non ts files
2018-08-13 13:30:31 -07:00
Sheetal Nandi
f2011ce755
Merge pull request #26197 from Microsoft/largeFileEvent
...
Send event on referencing large file
2018-08-13 11:14:22 -07:00
Sheetal Nandi
fe387cc7f0
Merge pull request #26377 from Microsoft/moduleResolutionWithSymLinks
...
Use original path from resolved module cache when available.
2018-08-10 22:27:38 -07:00
Sheetal Nandi
c5b74db78b
Merge pull request #26200 from Microsoft/watchWithStrict
...
Refresh semantic diagnostics when compiler options affecting semantic diagnostics generation changes
2018-08-10 16:15:37 -07:00
Elizabeth Dinella
421730a68d
Refactoring promises returning functions to use async and await ( #26373 )
2018-08-10 16:11:45 -07:00
Sheetal Nandi
82d4cccf53
Use original path from resolved module cache when available.
...
Fixes #26273
Thanks to @ajafff, for partial fix and test (#26310 )
2018-08-10 16:11:38 -07:00
Sheetal Nandi
c8e10a9a66
Merge pull request #26296 from ajafff/modulenameresolver-cache
...
fix moduleNameResolver cache
2018-08-10 14:36:54 -07:00
Sheetal Nandi
9ba224d3b0
Merge pull request #26305 from ajafff/common-prefix
...
moduleNameResolver: fix getCommonPrefix
2018-08-10 13:35:24 -07:00
Klaus Meinhardt
3469b62be6
review comments
2018-08-10 22:25:27 +02:00
Klaus Meinhardt
d2dc17d765
fix handling if there is no commonPrefix
2018-08-09 11:50:00 +02:00
Wesley Wigham
a36a53bfdb
Actually add sorting of elaboration text to user baselines
2018-08-08 13:40:21 -07:00
Klaus Meinhardt
20442fe363
handle failed lookups
2018-08-08 20:45:31 +02:00
Klaus Meinhardt
95082e4743
make it work for root directory
2018-08-08 20:29:59 +02:00
Klaus Meinhardt
ec1ff29a8c
really, really fix test(?)
2018-08-08 17:10:22 +02:00
Klaus Meinhardt
27d2a2d564
add test
2018-08-08 17:05:31 +02:00
Klaus Meinhardt
f31b9d3891
fix test
2018-08-08 16:38:42 +02:00
Klaus Meinhardt
47e77901fd
actually test the cache
2018-08-08 15:39:07 +02:00
Klaus Meinhardt
bed93b48f5
fix moduleNameResolver cache
...
Fixes : #26271
2018-08-08 11:12:48 +02:00
Sheetal Nandi
f67bdd429a
Skip loading configured project just to report project info through synchronizeProjectList for project opened by external project
2018-08-06 16:24:14 -07:00
Sheetal Nandi
8c4607d8eb
Dont delay external project update from openExternalProject
...
Since external projects are needed to be uptodate when opening file,
so in most likely scenarios these will be loaded anyways so there is no saving in postponing this work
2018-08-06 16:06:40 -07:00
Sheetal Nandi
a0190e397a
Delay update graph when opening external project, and delay load configured project referenced from external project when opening it
2018-08-06 16:01:15 -07:00
Sheetal Nandi
d419968c0d
Refresh semantic diagnostics when compiler options affecting semantic diagnostics generation changes
...
Fixes #26195
2018-08-03 16:27:25 -07:00
Sheetal Nandi
c6ca96bdcf
Removing debugger statements from tests
2018-08-03 15:41:44 -07:00
Sheetal Nandi
1e5e61873d
Send event on referencing large file
2018-08-03 15:22:28 -07:00
Sheetal Nandi
77e29b7f0e
Merge pull request #26169 from Microsoft/largeFile
...
Do not read files greater than maxFileSize which is currently 4mb
2018-08-03 10:38:02 -07:00
Sheetal Nandi
46d223dc1b
Fixes to ensure getDefinitionAndBoundSpan works correctly when using composite projects
...
Project references need to be detached from the project when closing project
In SourceMapDecoder handle when the redirected file to project reference is set as the output of the project
Keep configured project alive if project it references has open ref
Fixes #26164
2018-08-02 16:36:50 -07:00
Sheetal Nandi
135425d40b
Do not read files greater than maxFileSize which is currently 4mb
...
Fixes #24762
2018-08-02 13:03:58 -07:00
Sheetal Nandi
924228b45b
Merge branch 'master' into errorInFileWithDeepImport
2018-08-01 15:36:52 -07:00
Sheetal Nandi
a5a26ec939
Merge pull request #26109 from Microsoft/invalidTsconfig
...
Handle when property name turns out to be non string literal computed name because of errors in tsconfig file
2018-08-01 09:04:13 -07:00
Andy
9c9f3e3cf9
importFixes: When one file redirects to another, consider both for global import specifiers ( #25834 )
...
* importFixes: When one file redirects to another, consider both for global import specifiers
* Add test for #26044
* Avoid a symlinked package globally importing itself (fixes another case of #26044 )
* Compare to node_modules with getCanonicalFileName
2018-07-31 17:28:56 -07:00
Sheetal Nandi
3c971ed685
Handle when property name turns out to be non string literal computed name because of errors in tsconfig file
...
Fixes #26076
2018-07-31 17:23:55 -07:00
Sheetal Nandi
7bd1c8e6aa
Merge pull request #25811 from Microsoft/subDirectoryOfRootWatches
...
Watch subdirectories in project root instead of watching project root…
2018-07-31 11:51:16 -07:00
Mohamed Hegazy
aaf14f47b7
Merge pull request #26065 from ajafff/createbinary-arrow-parens
...
createBinary: parenthesize ArrowFunction in RHS
2018-07-31 11:27:53 -07:00
Sheetal Nandi
d65cb21fcd
Keep the original configured project alive created during findAllReferences
2018-07-30 14:44:21 -07:00
Sheetal Nandi
f3b0a2de06
Move the original location getter to ProjectService.
...
This is in anticipation of work needed to keep original projects alive
2018-07-30 14:44:21 -07:00
Sheetal Nandi
1345a35e5f
Merge pull request #26012 from Microsoft/compileOnSaveOptimization
...
If project name is specified in compile on save, do not update all projects to just use that project
2018-07-30 14:43:18 -07:00
Sheetal Nandi
7b405c4ad9
Test that verifies we arent updating all projects unnecessarily when called with compileOnSave and project
2018-07-30 14:10:56 -07:00
Sheetal Nandi
9196b7db33
Merge pull request #25851 from Microsoft/configFileDiag
...
Report compiler options errors as well as part of configFileDiag event
2018-07-30 11:07:07 -07:00
Klaus Meinhardt
4dabd650ed
createBinary: parenthesize ArrowFunction in RHS
...
Fixes : #25964
2018-07-30 19:22:30 +02:00
Mohamed Hegazy
fd2eb4918d
Merge pull request #25604 from mprobst/fix-exported-var-comments
...
Retain synthetic comments on exports.
2018-07-24 17:41:44 -07:00
Wesley Wigham
59854bbd55
Inspect all possible module paths when looking for the best one to create a specifier with ( #25850 )
...
* Inspect all possible specifier paths when looking for the best one
* Add missing secondary option from test
2018-07-24 13:56:21 -07:00
Sheetal Nandi
a9d497a008
Report compiler options errors as well as part of configFileDiag event
...
Fixes #25741
2018-07-20 18:04:08 -07:00
Andy
93722c8942
findAllReferences/rename: Search in all open projects ( #25648 )
...
* findAllReferences/rename: Search in all open projects
* Avoid needing a dummy location when location is unused
* Remove Program#getDeclarationEmitPath
* Only iterate over enabled projects
2018-07-20 16:53:59 -07:00
Sheetal Nandi
4ee3f2b3ea
Watch subdirectories in project root instead of watching project root so as to avoid watching excluded directories that are not part of config file
...
Fixes #25629 and Microsoft/vscode#51139
2018-07-19 17:21:50 -07:00
Andy
2701f785ed
Consistently use ScriptInfo for converting positions to Locations ( #25623 )
...
* Consistently use ScriptInfo for converting positions to Locations
* Code review
2018-07-18 13:02:38 -07:00
Martin Probst
c50a6f7389
Fix comment emit for namespaces & enums.
...
Keep emit flags set on the original node on a namespace or enum node.
This prevents dropping flags like NoComments, which caused duplicated
comment emits.
Additionally, TypeScript would emit synthetic comments twice, once for
the variable declaration, once for the module statement. This explicitly
clears away synthetic comments on namespaces and enums if their
synthetic comments have already been emitted on the corresponding
variable statement.
2018-07-18 17:23:28 +02:00
Martin Probst
2529b864f4
Retain synthetic comments on classes and their properties.
2018-07-18 17:23:27 +02:00