Bill Ticehurst
996e7e50d5
Use optional module "@microsoft/typescript-etw" for ETW logging
2019-07-29 15:32:40 -07:00
Sheetal Nandi
4ae091fa9e
Update src/server/project.ts
...
Co-Authored-By: Orta <orta.therox+github@gmail.com>
2019-06-28 10:17:58 -07:00
Sheetal Nandi
3e49556a88
Watch generated file if it doesnt exist when trying to translate it to to source generated position
2019-06-25 15:11:44 -07:00
Wesley Wigham
37b20f6afd
Eliminate references to defunct LSHost in comments ( #32018 )
2019-06-20 19:11:46 -07:00
Sheetal Nandi
2fd80b3142
When resolving from typings cache, handle node code modules
...
Fixes #29865
2019-06-07 16:21:39 -07:00
Benjamin Lichtman
8c443b1481
Stop invalidating resolution when file stays open
2019-05-30 15:05:53 -07:00
Sheetal Nandi
57d9ecc39f
Do not log errors when ts server plugin is not found in one folder but is eventually resolved.
...
Fixes #30106
2019-05-24 15:15:04 -07:00
Ryan Cavanaugh
885d4d63c8
Remove "generate types" code ( #31075 )
2019-04-23 13:51:47 -07:00
Sheetal Nandi
7ccd86bf52
When old program resolved to module and that file is included, dont consider as ambient resolution.
...
Fixes #30422
2019-04-03 14:05:49 -07:00
Benjamin Lichtman
78b0956474
VS IntelliCode-related changes ( #30731 )
...
* ensure configurePlugin gives a response
* Update tests
* Update baseline
* Enable global plugin loading for external projects
* Fix lint errors
2019-04-03 10:36:04 -07:00
Wenlu Wang
bd27296ba6
improve stripInternal with inline comments ( #23611 )
...
* improve stripInternal with inline comments
* fix lint
* stash
* simptify StripInternal
* fix internal type declaration
* fix internal type declaration again
* accept baseline
* refactor inline
* simply prev check
* remove getTrailingCommentRangesOfNode
* Merge implementation with new isInternalDeclaration method, accept lkg-based baseline
2019-03-12 13:14:47 -07:00
Nathan Shively-Sanders
17d16d1bbb
Disable checkJS survey ( #29830 )
...
* Disable checkJS survey
* Completely remove survey infrastructure
* Re-instate the protocol part of SurveyReady
2019-02-11 08:36:35 -08:00
Sheetal Nandi
0cabb00b34
Use watch factory instead of direct host functions in tsbuild to provide detailed information on watch invokations
2018-12-21 12:53:14 -08:00
Sheetal Nandi
fa7f5cb5a0
Actually verify when dependency and main project is open
2018-12-06 15:22:45 -08:00
Sheetal Nandi
56a39b754c
Keep alive declaration script info and map file info if source file info is alive
2018-12-06 15:22:42 -08:00
Sheetal Nandi
afdf1e90ec
Dont depend on project in document position mapper so that we can unload or remove projects independently
2018-12-06 15:22:40 -08:00
Sheetal Nandi
12428d45c0
Add method on host to get DocumentPositionMapper so it can be cached.
2018-12-06 15:22:39 -08:00
Andy
12f3d0d54c
Enable --strictPropertyInitialization ( #27558 )
...
* Enable --strictPropertyInitialization
* Code review
2018-11-16 16:02:23 -08:00
Andrew Casey
8bfdb4145d
Fix tests and lint
2018-11-15 16:00:35 -08:00
Andrew Casey
2c7d67fded
Expose aggregate file sizes in FileStats
...
We're not sure that file counts are a good proxy for project size and
this will give us more direct insight.
2018-11-15 13:56:24 -08:00
Sheetal Nandi
c77f0c41c2
Add affectsModuleResolution to compile options: maxNodeModuleJsDepth
...
Fixes inferred project incorrectly modifying existing compiler options
Fixes #27108
2018-11-09 10:48:28 -08:00
Sheetal Nandi
c0587191fc
Merge pull request #28418 from ajafff/internal-comments
...
remove even more internal comments
2018-11-08 14:58:33 -08:00
Sheetal Nandi
8dd05d5858
Fix public API
2018-11-08 13:01:22 -08:00
Sheetal Nandi
41b19309d4
Better project logging
2018-11-08 12:32:49 -08:00
Klaus Meinhardt
e2947fac1c
remove even more redundant internal comments
2018-11-07 16:12:48 +00:00
Andy
903e68164e
Redo resolution on ATA when previous resolution was to '.js' file ( #28236 )
...
* Redo resolution on ATA when previous resolution was to '.js' file
* Use a separate test case
2018-10-30 16:39:40 -07:00
Andy
acc34bd95d
Miscellaneous code cleanup relating to module resolution ( #28092 )
...
* Miscellaneous code cleanup relating to module resolution
* Revert if condition
2018-10-30 10:15:01 -07:00
Andy
7c515bf6e8
Remove toSortedArray
and toDeduplicatedSortedArray
, use sort
and sortAndDeduplicate
( #28214 )
2018-10-30 08:41:31 -07:00
Mine Starks
1fbabd5534
Merge pull request #28106 from minestarks/configure-plugins
...
configurePlugins command for tsserver
2018-10-29 14:06:40 -07:00
Andy
672b0e3e16
Have flatMap return a ReadonlyArray by default ( #28205 )
2018-10-29 11:12:51 -07:00
Klaus Meinhardt
5b3fe6e68b
update other interfaces and implementations
...
and accept baseline
2018-10-22 21:23:04 +02:00
Sheetal Nandi
88f79de9f4
Merge branch 'master' into transitiveReferences
2018-10-09 14:03:58 -07:00
Sheetal Nandi
37e25c8873
Send even for ProjectLoadStart and ProjectLoadFinish
...
Fixes #27206
2018-10-05 15:09:33 -07:00
Sheetal Nandi
2fb11d8530
Test transitive references in folders side by side so that later we can add tsserver tests as well
2018-10-04 15:04:12 -07:00
Sheetal Nandi
94df5167b0
Handle resolution caching when referenced tsconfig changes
2018-10-04 15:04:12 -07:00
Sheetal Nandi
0e4b10d726
Use resolution options of project reference if the file is from the project reference
2018-10-04 15:04:10 -07:00
Sheetal Nandi
0ac96580d5
Resolve project references transitively
2018-10-04 15:04:10 -07:00
Sheetal Nandi
aed876dfb4
Refactoring to unify updating no input files error
2018-09-27 11:58:15 -07:00
Sheetal Nandi
865b3e7862
Merge pull request #27172 from Microsoft/moduleResolutionWithOutDir
...
Use originalFileName (fileName of input project reference file) to resolve module/typereferences/reference paths in it instead of output decl file path
2018-09-18 14:33:33 -07:00
Andy
c57ff087d6
Add codefix to generate types for untyped module ( #26588 )
2018-09-18 11:47:29 -07:00
Sheetal Nandi
d51b8d940c
Use originalFileName (fileName of input project reference file) to resolve module/typereferences/reference paths in it instead of output decl file path
...
This also ensures that originalFileName, resolvedPath are set correctly even when we are reusing program structure
Fixes #26036
2018-09-17 19:00:30 -07:00
Sheetal Nandi
ea67e3ac56
Fix watch of project with project references
2018-09-13 15:41:07 -07:00
Nathan Shively-Sanders
30f611b055
Add survey event ( #26455 )
...
* Start adding survey event
* Add surveyReady event
* Remove old notes
* Move event, simplify type, add test
1. Move the survey event to sendProjectTelemetry so that it happens on
open instead of on editing tsconfig.
2. Remove URL from the survey type; VS code should control this
information.
3. Add test based on large files event test. I'm not sure it's in the
right place, though.
* Fix tests and update API baseline
* Split survey sending from telemetry
Based on tests requested during review.
* Add additional assertion
2018-08-28 19:57:39 -07:00
Sheetal Nandi
fc90b8f98b
lazyConfiguredProjectsFromExternalProject as userpreference instead of command line option
2018-08-28 14:41:22 -07: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
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
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
d74d8613bd
Use updateGraphIfDirty to do quick check if project update is needed
...
With this updateGraph is used only in locations we are certain project is dirty
2018-08-01 16:08:25 -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