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
Matt Bierner
4f13c4e6ab
Fix bad merge
2018-01-08 10:34:32 -08:00
Matt Bierner
ea55eda7aa
Mark TS optional fields with ? in suggestion list
...
Fixes #30334
2018-01-08 08:57:12 -08:00
Matt Bierner
435488274f
Revert includeExternalModuleExports for now
2018-01-08 08:50:00 -08:00
Matt Bierner
0a42cc1c8c
Save off full ts completion entry
2018-01-08 08:45:17 -08:00
Matt Bierner
99efa5aefb
Special case rendering of @param in TS hover and completion items
2018-01-05 11:28:00 -08:00
Matt Bierner
d47922c595
Extract getTagDocumentation
2018-01-05 11:27:59 -08:00
Matt Bierner
cca35e214e
Rename typeScriptMain -> typeScriptServiceClientHost
2018-01-05 11:27:59 -08:00
Matt Bierner
6f01cf8a7e
Move LanguageProvider into own file
2018-01-05 11:27:59 -08:00
Matt Bierner
4b0a5d8620
Move goToProjectConfig into commands
2018-01-05 11:27:59 -08:00
Matt Bierner
7a9e9bb03a
Simplify CachedNavTreeResponse api
2018-01-05 11:27:59 -08:00
Matt Bierner
ae169ed83a
Don't return promise from onReady in TS service client
2018-01-05 11:27:59 -08:00
Matt Bierner
bcd6bb8adf
Don't store promise on RequestItem
2018-01-05 11:27:59 -08:00
Matt Bierner
1b847dc693
Use actual set for SupportedCodeActionProvider
2018-01-04 11:19:30 -08:00
Matt Bierner
5a2a6c1e2e
Extract SupportedCodeActionProvider into own class
2018-01-04 11:19:30 -08:00
Matt Bierner
fadbc9c6cb
Move reset logic out of Promise
2018-01-04 11:19:30 -08:00
Matt Bierner
89b68c6d89
Make startService private
2018-01-04 11:19:30 -08:00
Matt Bierner
e996f52606
Move forked ts server process into own class
2018-01-04 11:19:30 -08:00
Matt Bierner
754d728b34
Move ts server log directory into vscode logging dir
...
Fixes #41116
2018-01-03 16:10:17 -08:00
Matt Bierner
71c0455943
💄
2018-01-03 16:10:17 -08:00
Matt Bierner
2b042e550c
💄
2018-01-03 16:10:17 -08:00
Matt Bierner
c2f5440ef1
Use code action class for TS quick fix provider
2018-01-03 16:10:17 -08:00
Matt Bierner
d1fc73226a
Move new CodeAction Api from proposed to vscode.d.ts
...
Moves the `provideCodeActions2` api from proposed to the offical VS Code api. This allows code action providers to return `CodeAction` objects
2018-01-02 15:22:32 -08:00
Matt Bierner
385e7f7341
Update js/ts grammar
2018-01-02 13:20:50 -08:00