Wesley Wigham
37b20f6afd
Eliminate references to defunct LSHost in comments ( #32018 )
2019-06-20 19:11:46 -07:00
Sheetal Nandi
7ed3896a0a
Merge pull request #31587 from microsoft/definitionSpan
...
Include declarationSpan as relevant declaration span when defintion or other places are declaration name
2019-06-18 14:07:15 -07:00
Sheetal Nandi
73bf2684ac
Rename to use contextSpan
2019-06-13 12:41:21 -07:00
Sheetal Nandi
da2aa9781e
Revert to using spread instead of mutating value later
2019-06-12 15:25:16 -07:00
Sheetal Nandi
a0d164f142
Merge pull request #31820 from microsoft/nodeModules
...
When resolving from typings cache, handle node code modules
2019-06-12 10:55:26 -07:00
Sheetal Nandi
2fd80b3142
When resolving from typings cache, handle node code modules
...
Fixes #29865
2019-06-07 16:21:39 -07:00
Sheetal Nandi
a6c72a0cf3
Do not watch tsconfig files from folders that we canot watch
...
Fixes #30818
2019-06-07 12:10:21 -07:00
Sheetal Nandi
a84ed93f72
Merge branch 'master' into definitionSpan
2019-06-06 14:13:09 -07:00
Benjamin Lichtman
d3b6ba557a
Change test instead of behavior
2019-05-31 14:46:15 -07:00
Benjamin Lichtman
7ac5fa783b
Refactor and add wildcard scenario
2019-05-31 11:24:54 -07:00
Benjamin Lichtman
8c443b1481
Stop invalidating resolution when file stays open
2019-05-30 15:05:53 -07:00
Sheetal Nandi
fd86f40d05
Include declarationSpan as relevant declaration span when defintion or other places are declaration name
...
Fixes #30849
2019-05-24 15:44:32 -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
Andrew Branch
15daf42b2c
Merge pull request #31028 from andrewbranch/feature/smart-select
...
Smart Select language service API
2019-05-16 09:45:05 -07:00
Kagami Sascha Rosylight
1a75d525fa
add ES2020 matchAll APIs ( #30936 )
2019-04-25 14:11:50 -07:00
Ryan Cavanaugh
885d4d63c8
Remove "generate types" code ( #31075 )
2019-04-23 13:51:47 -07:00
Andrew Branch
99ace033bf
Revert accidental line ending change
2019-04-18 17:23:54 -07:00
Andrew Branch
d8936fd290
Rename to be smarter
2019-04-18 16:23:06 -07:00
Andrew Branch
0f7bc02892
Move to language service
2019-04-18 16:05:06 -07:00
Andrew Branch
61425cb304
Move most logic to separate file
2019-04-18 16:05:06 -07:00
Andrew Branch
0a4ef0f630
Distinguish between same-line and different-line braces
2019-04-18 16:05:06 -07:00
Andrew Branch
039487c84e
Also skip TemplateHeads
2019-04-18 16:05:06 -07:00
Andrew Branch
fd88e52252
Start imports
2019-04-18 16:05:06 -07:00
Andrew Branch
e62c2333eb
Add support for string literals
2019-04-18 16:05:06 -07:00
Andrew Branch
f98c00ab9d
Add more tests, special handling for mapped types
2019-04-18 16:05:05 -07:00
Andrew Branch
af3d0f0248
Start smart select API
2019-04-18 16:05:05 -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
Sheetal Nandi
e78f52d246
Add more information when getValidSourceFile cant find the file in question.
...
Log for #30180
2019-03-15 15:03:45 -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
Sheetal Nandi
990b199ebd
Merge branch 'master' into incrementalBuildInfo
2019-03-08 11:42:19 -08:00
Sheetal Nandi
ec2ee9ff3a
Ignore anything starting with ".git"
...
Fixes #29782
2019-03-06 15:00:26 -08:00
Sheetal Nandi
e55fbffed6
Rename the request as updateOpen
2019-03-05 14:34:08 -08:00
Sheetal Nandi
5fd745d834
Update the tsconfigs
2019-02-28 14:01:40 -08:00
Sheetal Nandi
03377f70b7
Apply changes in reverse order even in new API to match behaviour with internal api
2019-02-27 14:07:15 -08:00
Sheetal Nandi
e6068f405b
Make applyChangesToOpenFiles efficient to handle batch file opens, close and changes before updating projects
...
Fixes #29667
2019-02-26 11:54:29 -08:00
Sheetal Nandi
2258bb2fb7
Add request applyChangesToOpenFiles
2019-02-26 10:21:01 -08:00
Sheetal Nandi
9fa28158bb
Enable building typescript.d.ts with current source
2019-02-22 18:11:27 -08: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
Jesse Trinity
f0a6154e9b
Added auto setting to quotePreference
2019-02-06 14:37:26 -08:00
Benjamin Lichtman
62cf44cb9b
Allow per-file setting for rename default behavior preferences ( #29593 )
...
<!--
Thank you for submitting a pull request!
Here's a checklist you might find useful.
* [ ] There is an associated issue that is labeled
'Bug' or 'help wanted' or is in the Community milestone
* [ ] Code is up-to-date with the `master` branch
* [ ] You've successfully run `jake runtests` locally
* [ ] You've signed the CLA
* [ ] There are new or updated unit tests validating the change
Refer to CONTRIBUTING.MD for more details.
https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md
-->
Fixes #29585 .
#29314 and #29385 made it so their respective settings are only recognized when provided to the host as a whole.
This PR makes it so that the relevant settings for the preferences on the file override those of the preferences on the host.
2019-01-30 19:08:30 -08:00
Sheetal Nandi
9bd23652ef
Merge pull request #29161 from Microsoft/incrementalBuild
...
Supports incremental build in tsc --b --w mode
2019-01-17 13:44:48 -08:00
Benjamin Lichtman
5fc8f1dd80
Add opt-in user preference for prefix and suffix text on renames ( #29314 )
...
* Add user preference to control renaming through exports
* Only impact renaming
* Update baselines
* Use flag to control all prefix and suffix text and imports
* [WIP] add tests
* Only skip export import specifier with flag
* [WIP] Update tests
* Update test
* Pick up preference from host and update test
* Shorten flag name
* Add missing utility function
* Update comment
* [WIP] rename flag and respond to cr
* [WIP] Add flag for forRelatedSymbol
* Use larger search symbol set for old-style rename
* Respond to CR
* Fix small error
* Fix type mismatch
* Update comment and remove unnecessary exprot
* Respond to CR
2019-01-16 10:58:07 -08:00
Andrew Casey
35f64fa894
Merge pull request #29421 from amcasey/DisabledLSHardening
...
Harden telemetryOnOpenFile against disabled projects
2019-01-15 11:23:05 -08:00
Andrew Casey
b86cb27d0b
Fix trailing whitespace
2019-01-14 18:13:13 -08:00
Andrew Casey
104434182b
Harden telemetryOnOpenFile against disabled projects
...
As for syntax-only servers, we can't meaningfully report open-file
telemetry for projects with disabled language services.
Hopefully, a deeper fix will follow, but this solves the immediate
problem that VS disables the LS for all projects when it sees a failure
in applyChangedToOpenFiles (because it assumes the server state is
corrupt).
2019-01-14 17:43:06 -08:00
Benjamin Lichtman
d029fae35c
Add user preference to opt-in to renaming import paths
2019-01-11 14:45:08 -08:00
Sheetal Nandi
1b37830615
Merge branch 'master' into incrementalBuild
2019-01-09 10:40:01 -08:00
Sheetal Nandi
1870ee4099
Merge branch 'master' into tsconfig_canonicalpath
2019-01-08 16:04:22 -08:00
Sheetal Nandi
24cc284d19
The assert that cached value of config file existance is always correct, might not be true if file watcher is not invoked before creating configured project
...
Fixes #29191
2019-01-02 15:42:12 -08:00