Commit Graph

766 Commits

Author SHA1 Message Date
kieferrm ce02d1d7f5 change classification of tsserver.exitWithCode 2018-02-27 10:35:39 -08:00
Martin Aeschlimann 44a45f8bad typescript.experimental.syntaxFolding (#44444) 2018-02-26 14:06:51 -08:00
Christof Marti 8eddfa2cfb Fix TypeScript features in Interactive Playground (fixes #44172) (#44443) 2018-02-26 14:05:24 -08:00
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
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
Benjamin Pasero 18c60de96e Merge branch 'master' into ben/notifications 2018-02-18 11:14:26 +01: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
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
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 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