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
2f84741725
Remove unnecessary fields
2018-12-06 15:22:46 -08:00
Sheetal Nandi
fa7f5cb5a0
Actually verify when dependency and main project is open
2018-12-06 15:22:45 -08:00
Sheetal Nandi
3dc0d5a77c
Watch missing map file and update the source mapping accordingly
2018-12-06 15:22:44 -08:00
Sheetal Nandi
d0976509c9
Add tests and fix DocumentPositionMapper creation on updates to d.ts, source file, map file etc
2018-12-06 15:22:43 -08:00
Sheetal Nandi
0113f43632
Fix the edits clamping from #28583 after rebasing to master
2018-12-06 15:22:43 -08:00
Sheetal Nandi
751cb9e2c3
Update source and declaration projects on update to declaration file or map file
...
TODO: add tests
2018-12-06 15:22:42 -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
0aa4da43ad
Life time of declaration, sources and map infos
...
Map Info and sources is not ideal and need to revisited since we need to update mapper and projects correctly
// TODO: lifetime of source project and declaration map
2018-12-06 15:22:41 -08:00
Sheetal Nandi
5c920f3368
Dont unnecessarily make textStorage internal
2018-12-06 15:22:40 -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
642803c182
Merge pull request #28559 from amcasey/FileSize
...
Expose aggregate file sizes in FileStats
2018-11-16 13:52:12 -08:00
Andrew Casey
a8c634d70d
Restore useText
2018-11-16 10:48:06 -08:00
Andy
1089424035
Ensure getApplicableRefactors doesn't crash when given a position ( #28361 )
2018-11-16 09:30:37 -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
Andrew Casey
02d5cb045c
Expose file size from TextStorage
...
Since it's for telemetry, it prefers to return a stale value rather than
triggering file IO (though it will load the file if not even a stale
value is available).
2018-11-15 13:56:24 -08:00
Ron Buckton
50a0174582
Merge pull request #27629 from Microsoft/sourceMapGenerator
...
Simplify source map generation
2018-11-09 14:50:22 -08:00
Ron Buckton
151dc074a8
Merge branch 'master' into sourceMapGenerator
2018-11-09 11:50:51 -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
62419bb103
Merge pull request #28419 from Microsoft/elaborateAssert
...
Elaborate assert of infos attached to project
2018-11-08 15:45:38 -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
7bfc2c8113
Elaborate assert of infos attached to project
2018-11-08 14:56:10 -08:00
Sheetal Nandi
8dd05d5858
Fix public API
2018-11-08 13:01:22 -08:00
Sheetal Nandi
55fb052d7a
Allow creation of relative path file infos only for open script infos
...
Fixes #20476
2018-11-08 12:43:48 -08:00
Sheetal Nandi
41b19309d4
Better project logging
2018-11-08 12:32:49 -08:00
Sheetal Nandi
f97274383d
Log project name when removing project
2018-11-08 12:32:48 -08:00
Sheetal Nandi
9eecf3bd68
Some reorg
2018-11-08 12:32:48 -08:00
Klaus Meinhardt
e2947fac1c
remove even more redundant internal comments
2018-11-07 16:12:48 +00:00
Sheetal Nandi
f0f02754f3
Change type of metadata to unknown
2018-11-06 18:45:08 -08:00
Sheetal Nandi
4a51f12c3e
Add metadata to response if it exists for results from language service.
...
Currently its wired through for completions requests.
Handles #21999
2018-11-06 15:06:54 -08:00
Andy
92a48d8880
Improve error message when scriptInfo is missing in mapTextChangeToCodeEdit ( #28258 )
...
* Improve error message when scriptInfo is missing in mapTextChangeToCodeEdit
* Include both fileName and path, and use in more places
* Move logErrorForScriptInfoNotFound to editorServices.ts
* Update API
2018-11-02 16:12:46 -07:00
Sheetal Nandi
a373029f54
Public API
2018-10-31 15:11:54 -07:00
Sheetal Nandi
f7189e17f4
Some reorg in creating sessions for testing
2018-10-31 13:05:12 -07:00
Sheetal Nandi
878b7a21ce
Fix incorrect event
2018-10-31 13:05:00 -07:00
Sheetal Nandi
4606a4b700
Merge pull request #28209 from Microsoft/ignorePathsStartingWithDotInNodeModules
...
Ignore any changes to file or folder that are in node_modules and start with "."
2018-10-30 18:06:00 -07: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
Sheetal Nandi
c9fadf1f46
Ignore wild card directory watchers with node_modules file or folder starting with .
2018-10-30 11:06:13 -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
Sheetal Nandi
d32c1b091a
Ignore any changes to file or folder that are in node_modules and start with "."
...
Fixes #27673
2018-10-29 12:00:46 -07:00
Andy
672b0e3e16
Have flatMap return a ReadonlyArray by default ( #28205 )
2018-10-29 11:12:51 -07:00
Andy
eadf44d073
Add generateTypesForModule to public API ( #28069 )
...
* Add generateTypesForModule to public API
* Avoid parameter initializer and update baselines
2018-10-23 16:10:26 -07:00
Klaus Meinhardt
5b3fe6e68b
update other interfaces and implementations
...
and accept baseline
2018-10-22 21:23:04 +02:00
Sheetal Nandi
ae1bd8bc33
Merge branch 'master' into transitiveReferences
2018-10-11 11:33:23 -07:00
Sheetal Nandi
88f79de9f4
Merge branch 'master' into transitiveReferences
2018-10-09 14:03:58 -07:00
Sheetal Nandi
b4b29ab1e1
Converted legacySafelist to map to avoid using array prototype methods accidently to match with filename
...
Eg. constructor.js was adding constructor function to aquisition.include which
resulted in the mismatch between typing installer's typeAquisition (which was passed as JSON string and parsed back to null) and one in project
That meant we kept on queuing the new typing installation request.
Fixes #27435
2018-10-09 13:21:43 -07:00