Commit Graph

1287 Commits

Author SHA1 Message Date
Benjamin Lichtman
f989ef7261 Merge pull request #21004 from uniqueiniquity/updateATA
Enable typings cache entries to expire and be updated
2018-02-09 14:17:26 -08:00
uniqueiniquity
4c89a813bf Handle case where package.json and package-lock.json don't agree 2018-02-09 10:36:49 -08:00
Sheetal Nandi
bf707ac265 Merge pull request #21743 from Microsoft/defaultProjectForFile
Fix getDefaultProjectForFile check
2018-02-08 09:58:43 -08:00
Wesley Wigham
871e71d4ef Move insertSorted from server to core, use for diagnostic collections (#21401)
* Move insertSorted from server to core, use for diagnostic collections

* All keep the overall list sorted, too

* Increase timeout for js verification

* Use knowledge of how diagnostics are sorted to make all diagnostic list creation lazy and more efficient

* Staunchly avoid array allocation in favor of resizing an existing array
2018-02-07 17:00:59 -08:00
Sheetal Nandi
b18f830216 Fix getDefaultProjectForFile check
Fixes #21738
2018-02-07 14:42:51 -08:00
Armando Aguirre
ece4eeec95 Removed internal on private property 2018-02-07 13:18:47 -08:00
Armando Aguirre
0aa72a7822 Added backward compatibility and PR comments 2018-02-06 17:11:59 -08:00
Armando Aguirre
cdff95f914 Refactored exceededTotalSizeLimitForNonTsFiles to return the last filename analyzed if the service language is going to be disabled 2018-02-05 19:25:07 -08:00
Andy
d11c7aeeaf class Project: implement log and error from LanguageServiceHost (#21635)
* class Project: implement `log` and `error` from `LanguageServiceHost`

* Update API baseline
2018-02-05 11:42:03 -08:00
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
uniqueiniquity
7397fb11c4 Fix lint and test errors and add tests 2018-01-19 14:10:06 -08:00
uniqueiniquity
d34b86573c Respond to CR 2018-01-19 13:13:51 -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
uniqueiniquity
a21f73f862 Remove timestamp checking and move registry check into jstyping 2018-01-11 12:58:22 -08:00
uniqueiniquity
e72ea6f7b1 Update installed types if older than those listed in the registry 2018-01-11 12:58:22 -08:00
uniqueiniquity
23324345e2 Update representation of timestamp file to prevent some extra install calls 2018-01-11 12:58:22 -08:00
uniqueiniquity
6a16cfe0a5 Use existing map to hold representations of timestamp files 2018-01-11 12:58:22 -08:00
uniqueiniquity
7b6be118f5 Allow for local timestamp files and style fixes 2018-01-11 12:58:22 -08:00
uniqueiniquity
3f23d5d02e Respond to CR 2018-01-11 12:58:22 -08:00
uniqueiniquity
bf4ec1df5a Fix timestamp writing, npm install, and cache behavior 2018-01-11 12:58:21 -08:00
uniqueiniquity
b0321dc177 Refactor to avoid errors 2018-01-11 12:58:21 -08:00
Benjamin Lichtman
ee5e8e3eee Ensure proper JSON writing behavior of timestamps 2018-01-11 12:58:21 -08:00
uniqueiniquity
9d298a13a1 [WIP] enable updating ATA files 2018-01-11 12:58:21 -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