Benjamin Pasero
a23edada50
debt - avoid deprecated Buffer ctors
2018-02-26 13:09:54 +01:00
Matt Bierner
ee558b001c
Refactoring
...
Extract shouldEnableDotCompletions
Extract getConfigurationForResource
Reorder methods
Format sig
2018-02-23 17:25:47 -08:00
Matt Bierner
a269045780
better scope try catch in provideCompletionItems
...
We only want to swallow exceptions around the request itself
2018-02-23 17:11:30 -08:00
Matt Bierner
ec3e57e946
Remove TS 2.6.1 import path workaround since this was fixed in TS 2.6.2+
2018-02-23 17:04:55 -08:00
Matt Bierner
a16e650dcf
Remove unused cast
2018-02-23 17:01:00 -08:00
Matt Bierner
b0add1e84f
Use vscode namespace instead of specific imports
2018-02-23 16:57:44 -08:00
Matt Bierner
0d5bb310d9
Extract should trigger to new method
2018-02-23 16:54:30 -08:00
Ramya Achutha Rao
c1ee104fd4
Use latest version of telemetry module
2018-02-23 14:57:27 -08:00
Matt Bierner
e23c58b3ab
Split out ts syntax and grammar to ts basics
2018-02-23 13:29:52 -08:00
Benjamin Pasero
393aa4f985
notifications - polish some extension messages
2018-02-23 18:19:55 +01:00
Matt Bierner
dcf6559cc1
Prototype experimental folding API for TS/JS
...
#44158
2018-02-22 16:07:11 -08:00
Matt Bierner
47dae4cf73
Mark properties readonly
2018-02-22 15:12:09 -08:00
Matt Bierner
dac9f9a94e
Fix ts/js telemetry reporter
2018-02-22 15:12:09 -08:00
Matt Bierner
b02b49ebd0
Use async
2018-02-22 15:12:09 -08:00
Matt Bierner
3006e25f03
Add real displayName and descriptions to the typescript extension
...
Part of #43978
2018-02-22 15:12:09 -08:00
Benjamin Pasero
18c60de96e
Merge branch 'master' into ben/notifications
2018-02-18 11:14:26 +01:00
Ramya Achutha Rao
ad06c9c609
Update telemetry module
2018-02-17 17:27:09 -08:00
Matt Bierner
ee6ac95120
Fix ? being appended to optional completions when using useCodeSnippetsOnMethodSuggest
...
Fixes #42955
2018-02-16 17:51:16 -08:00
Matt Bierner
57e5420127
Fix empty jsdoc suggest template not properyly expanding to multiline
...
Fixes #43619
2018-02-16 13:45:32 -08:00
Benjamin Pasero
32018e28c1
notifications - better status bar alignment
2018-02-15 07:48:42 +01:00
Ramya Achutha Rao
994bfe6903
Update telemetry module to fix issue of missing version in events
2018-02-13 17:07:30 -08:00
Martin Aeschlimann
8fdf170a08
update grammar script: remove unused properties
2018-02-12 16:54:46 +01:00
Martin Aeschlimann
3e9d16948c
[ts/js] update grammars
2018-02-09 12:45:27 +01:00
Matt Bierner
f8c5a3d888
Also fix formatting in tracer
2018-02-08 15:16:33 -08:00
Matt Bierner
308c1887df
Update extensions for TS 2.7
...
Update src to build with TS 2.7
Explicitly assign this.message in the else body
2018-02-08 14:28:55 -08:00
Matt Bierner
d2d18a47fd
Fix multiple quick fix entries showing up same diagnostic with same range
...
#43181
2018-02-08 12:59:25 -08:00
Matt Bierner
c0cb5cd5c6
Defer quick fix all ts call
...
Fixes #42764
2018-02-01 16:16:05 -08:00
Matt Bierner
357ac464be
Don't show fix all in js/ts if we only have a single dianostics of that type in the file
...
Fixes https://github.com/Microsoft/TypeScript/issues/21458
2018-01-31 22:05:38 -08:00
Matt Bierner
454b25c969
Fix bracketed completions range possibly spanning multiple lines
...
Fixes #42580
2018-01-31 15:41:32 -08:00
Matt Bierner
6004de0402
Don't add empty documentation for js/ts completions
...
Fixes #42662
2018-01-31 15:05:28 -08:00
Dirk Baeumer
e91b851ca8
Upgrade to latest language pack format
2018-01-30 00:11:57 +01:00
Ramya Achutha Rao
71c3b15465
Update the telemetry module used by extensions
2018-01-29 14:53:24 -08:00
Matt Bierner
41afff235b
Restore automatically putting TS Server in debug more if TSS_DEBUG is set
...
Fixes https://github.com/Microsoft/TypeScript/issues/21454
2018-01-29 10:50:39 -08:00
Matt Bierner
d14586e186
Provide command aliases for TS extension
...
#39778
2018-01-29 09:55:20 -08:00
Matt Bierner
b3526e5adf
Update js/ts grammar
2018-01-25 15:28:54 -08:00
Matt Bierner
1ff5d84a5f
Also capture dots in jsdoc property names
2018-01-25 15:28:54 -08:00
Dirk Baeumer
04594c864b
Add support for Language Packs
2018-01-25 21:14:34 +01:00
Matt Bierner
b7b3ddbc2e
Mark extract constant refactor as refactor.extract.constant
2018-01-24 08:55:33 -08:00
Matt Bierner
1e117f4168
Revert "Revert "Use special prefix to tell TS that a resource is in-memory only ( #42001 )""
...
This reverts commit 200e401357 .
2018-01-23 13:10:49 -08:00
Matt Bierner
6316a4d0c8
Take kind instead of edit in CodeAction ctor
...
Changes the `CodeAction` constructor to take a kind instead of an edit. This makes the API more consistent IMO, as now both `edit` and `command` are set the same way
2018-01-22 11:59:17 -08:00
Matt Bierner
eccf728e64
CodeActionScope ( #41782 )
...
* Add CodeActionScope
* Replace matches with contains, try using in ts extension
* Move filtering to getCodeActions
* Basic test
* Docs
* Fix tests
* Hooking up requested scope
* Add basic test for requestedScope
* Added auto apply logic
* Gate refactor provider to only compute refactorings when requested
* Making suggested renames
* Clean up code action trigger impl to use single Trrigger info object
* Rename codeActionScope file and internal CodeActionScope class
* Add quick fix base type
* Make keybinding API more similar to insertSnippet
Take args as an object instead of as an array of values
* Clean up docs
* scope -> kind
* Fixing examples to match Refactor kind
2018-01-22 11:45:22 -08:00
Matt Bierner
d3e2fe7c55
Explicitly hide TS version status when in ts/js file with unknown scheme
2018-01-19 18:38:44 -08:00
Matt Bierner
b0a26a94c6
Add quick fix all for JS/TS
...
Fixes #40170
2018-01-18 17:22:58 -08:00
Matt Bierner
a00d9092bc
Remove any cast for completion items now that we've picked up TS 2.7
2018-01-17 18:09:05 -08:00
Matt Bierner
fbb4b9425b
Remove unused param
2018-01-17 15:38:37 -08:00
Matt Bierner
44d1107612
Make a code action request for each diagnostic
...
Fixes #27392
**Bug**
We currently only make a single code action request for all diagnostics, with a range the covers the span of all diagnostics. However the TS Server API actually expects a code action request for each diagnostic (both the code and range of the code action request has to exactly match that of the diagnostic it aims to fix).
The result is that for overlapping diagnotics where there are multiple fixes, we only would get code actions for the outermost diagnostic
**Fix**
Make a code action request per diagnostic
2018-01-17 15:38:37 -08:00
Matt Bierner
1c07451dd1
Memoize TS API version checks
2018-01-17 13:44:50 -08:00
Matt Bierner
05b667d5a2
Don't set TS completion entry details when passed a zero length display parts
2018-01-09 23:39:07 -08:00
Matt Bierner
5fe3f97edb
Pre-support for backeted property completions in js/ts
...
Requires a build of TS with https://github.com/Microsoft/TypeScript/pull/20547 Fixes #36429
Also relaxes the matching logic for suggestion items with filter texts
2018-01-08 17:51:37 -08:00
Matt Bierner
61955244ab
Move escapeRegExp to own function
2018-01-08 17:51:37 -08:00