1266 Commits

Author SHA1 Message Date
Armando Aguirre
25f20da200 Added Ace and PDFKit to typesMap 2018-01-30 17:03:54 -08:00
Armando Aguirre
e99fe78172 Addressed PR comments 2018-01-30 15:22:34 -08:00
Armando Aguirre
cd994964e3 Improved datatables regex 2018-01-30 10:48:56 -08:00
Armando Aguirre
8a561e72a8 Improved datatables regex 2018-01-30 10:46:17 -08:00
Armando Aguirre
cd12c8b63b Added datatables library to safelist 2018-01-30 10:22:29 -08:00
Sheetal Nandi
659424e33f Log more info about platform for further diagnosis 2018-01-29 16:02:16 -08:00
Sheetal Nandi
146256b7dc Allow dynamic files without external project and also use file names starting with ^ as dynamic file
Fixes #21204
2018-01-22 11:44:43 -08:00
Sheetal Nandi
8a51cdaf42 Merge branch 'master' into builderApi 2018-01-19 15:56:40 -08:00
Sheetal Nandi
98dfb7c2b0
Merge pull request #21282 from Microsoft/detailDebugFail
Report more detailed info during script info creation
2018-01-18 16:31:31 -08:00
Sheetal Nandi
225e2f4d78 Report more detailed info during script debug failure 2018-01-18 13:01:57 -08:00
Andy
6d051f82fd
Handle CodeFixAction in mapCodeAction (#21247)
* Handle CodeFixAction in mapCodeAction

* Update API baseline
2018-01-18 12:14:47 -08:00
Sheetal Nandi
ed23ca582a Merge branch 'master' into builderApi 2018-01-17 16:11:44 -08:00
Sheetal Nandi
9ad9dc106c
Merge pull request #21171 from Microsoft/renameSymLinks
Rename through all projects with same file through symLink
2018-01-17 15:08:27 -08:00
Sheetal Nandi
41c02e6482
Merge pull request #20515 from Microsoft/fileAddedAfterProjectOpen
Update the project graph before checking if opened file is present in the existing project
2018-01-17 15:07:46 -08:00
Andy
f96dc84a70
Make getCombinedCodeFix API public (#21234) 2018-01-17 12:42:31 -08:00
Sheetal Nandi
5bd3f97b18 Merge branch 'master' into builderApi 2018-01-16 11:14:39 -08:00
Sheetal Nandi
428e0529fd Rename through all projects with the same file symLink 2018-01-12 16:24:04 -08:00
Andy
d2fd137d88
Add a getFullText() helper method to IScriptSnapshot (#21155)
* Add a `getFullText()` helper method to `IScriptSnapshot`

* Use a function instead of a method
2018-01-12 10:44:39 -08:00
Sheetal Nandi
69bb5ea8f0 Do not trigger the failed lookup location invalidation for creation of program emit files
Handles #20934
2018-01-11 12:34:58 -08:00
Sheetal Nandi
667751df2a When sending typings request use project's current directory as project root path
This ensures that we arent picking typings from folder different from the current directory for the project
2018-01-09 15:59:56 -08:00
Andy
89ceb4b9b5
Support completions that require changing from dot to bracket access (#20547)
* Support completions that require changing from dot to bracket access

* Use insertText and replacementSpan

* Rename includeBracketCompletions to includeInsertTextCompletions

* Don't add completions that start with space
2018-01-08 18:57:46 -08:00
Wenlu Wang
7154df10df add support for insertSpaceBeforeTypeAnnotation (#20466) 2018-01-08 13:25:02 -08:00
Sheetal Nandi
5bc78afcbb Merge branch 'master' into builderApi 2018-01-08 13:01:09 -08:00
Andy
6f2ba15446
Start linting for double spaces (#20820)
* Start linting for double spaces

* Code review

* Fix cases that were excluded by countDoubleSpaces

* Remove extraneous closing parenthesis
2018-01-08 08:52:13 -08:00
Matt Bierner
8ed4e666e8 Log TS Server version and process args (#20847)
* Print TS Server version and args in logs

Fixes #18867

Adds basic logging of the version of tsserver being run and the full command line arguments used to run it

* Don't check log level for logging versions/args
2018-01-04 15:18:41 -08:00
Ryan Cavanaugh
dde7f03914
Merge pull request #20854 from mjbvz/global-plugins-for-inferred
Load global plugins for inferred projects
2018-01-03 12:39:49 -08:00
Benjamin Lichtman
b9ea3471a4 Simplify test and add explanatory assertion 2017-12-28 11:22:41 -08:00
uniqueiniquity
d4dd930f2e Allow dynamic files script info to be created when not opened by client 2017-12-27 11:12:56 -08:00
Matt Bierner
993a21e4e2 Load global plugins for inferred projects
Fixes #18322

Ensure that we also try to load global plugins for inferred projects. Moves global plugin loading logic to base `Project` class from `ConfigureProject` .
2017-12-21 17:04:27 -08:00
Andrew Casey
a3ab1ffcff
Merge pull request #20713 from amcasey/GH19165
Stop assuming code fix test changes are in the originating file
2017-12-15 14:21:57 -08:00
Andrew Casey
8b0988543b Stop assuming code fix test changes are in the originating file
Triggering a fix in one file can result in changes in another file.
Instead of passing around the originating file, retrieve an appropriate
`ScriptInfo` for each `FileTextChanges`.

Fixes #19165
2017-12-14 16:50:28 -08:00
Ryan Cavanaugh
bd3a27ed52 Clear the module resolution cache when new @types appear 2017-12-12 16:11:37 -08:00
Sheetal Nandi
2611c9b339 Merge branch 'master' into builderApi 2017-12-07 20:23:15 -08:00
Sheetal Nandi
965f40f213 Use builder state in the semantic/emit builder as well 2017-12-07 17:11:36 -08:00
Sheetal Nandi
bb0fc0d2bc Convert builder state to mutable data, so that later we can create builder Program out of this 2017-12-07 14:15:59 -08:00
Andy
19ea189b42
Support a "getCombinedCodeFix" service (#20338)
* Support a "getCombinedCodeFix" service

* Rename things

* Code review

* Rename things

* Update API baselines

* CodeActionAll -> CombinedCodeActions

* Take a `scope` parameter instead of `fileName` for flexibility

* Renames and bugfixes

* Make API changes internal

* Code review

* Update comment
2017-12-07 12:14:18 -08:00
Sheetal Nandi
4c21cbf145 Create builderState so that when FilesAffectedBy is only api needed, we arent tracking changed files 2017-12-07 11:47:49 -08:00
Arthur Ozga
477c1f57a9
Merge pull request #20465 from Microsoft/dev/aozgaa/tsserverVersion
Add a status request-response for editors
2017-12-06 17:05:46 -08:00
Sheetal Nandi
eb052fe714 Merge branch 'master' into builderApi 2017-12-06 15:33:34 -08:00
Arthur Ozga
03e93d832e Merge branch 'master' into dev/aozgaa/tsserverVersion 2017-12-06 14:02:30 -08:00
Arthur Ozga
0e75c5cc2f update descriptions 2017-12-06 14:02:04 -08:00
Sheetal Nandi
a21b074055 Update the builder to take options aligning with the WatchCompilerHost 2017-12-06 13:59:53 -08:00
Ryan Cavanaugh
ee283d1524
Merge pull request #20464 from RyanCavanaugh/fix20402
Don't add ambiently declared modules to ATA's unresolvedModules list
2017-12-06 13:55:54 -08:00
Ryan Cavanaugh
c15470595f Dedupe local types from ATA and reuse old programs correctly 2017-12-06 13:17:21 -08:00
Sheetal Nandi
c1cbf588ff Update the project graph before checking if opened file is present in the existing project
Fixes #20017
2017-12-06 12:27:59 -08:00
Sheetal Nandi
14f66efcc5 Update the emitting file, reporting errors part of the watch api 2017-12-05 22:15:24 -08:00
Sheetal Nandi
8cc2936352 Move watchFile and watchDirectory to WatchCompilerHost 2017-12-05 18:09:10 -08:00
Sheetal Nandi
43c2610a69 More functions moved from system to WatchCompilerHost 2017-12-05 16:53:34 -08:00
Andy
3a3bb8e3f0
Immediately respond to applyCodeActionCommand requests (#20448) 2017-12-05 13:19:01 -08:00
Sheetal Nandi
944f8b8792 Instead of using system as object on WatchHost, create WatchCompilerHost that combines the functionality 2017-12-05 11:46:45 -08:00