Commit Graph

960 Commits

Author SHA1 Message Date
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
Tony Collen 8ee4aba28b Switch all schemastore.org URLs to use SSL. (#40737)
References SchemaStore/schemastore#12
2018-01-02 11:36:21 -07:00
Matt Bierner 97c5ccce27 Extract DiagnosticSet collection type 2017-12-20 17:24:45 -08:00
Matt Bierner c183847af2 Extract getLabel in TS workspace symbol provider 2017-12-20 17:24:45 -08:00
Matt Bierner 277f0c8e91 💄 2017-12-20 17:24:45 -08:00
Matt Bierner d2b8a4738e Fix strict checking error for TS 2.7 with _onReady 2017-12-20 17:24:45 -08:00
Martin Aeschlimann 069b68bcd5 [ts] update grammar 2017-12-20 17:30:56 +01:00
Martin Aeschlimann 7c5c8d59db [js] update grammar 2017-12-20 17:30:56 +01:00
Matt Bierner dcaee0a107 De-prioritze auto-imports
Fixes #40311
2017-12-18 13:35:13 -08:00
SteVen Batten 8d244787c4 updating the typescript extension codelens to cache requests for the navtree (#40402)
Fixes #28214
2017-12-18 10:46:33 -08:00
Matt Bierner 4c00fcdbc6 Use consistent casing 2017-12-15 17:23:25 -08:00
Matt Bierner 86a35ac4dd Use async in completionItemProvider resolve 2017-12-15 17:22:34 -08:00
Matt Bierner a05433ac56 Clean up useCodeSnippetsOnMethodSuggest 2017-12-15 17:09:25 -08:00
Matt Bierner ac459c22cb Defer TS completion item resolve of range 2017-12-15 17:09:25 -08:00
Matt Bierner d3decc7eef Support isRecommended property for TS completion items
Fixes #40325
2017-12-15 17:09:25 -08:00
Johannes Rieken 966100d9fa Only accept WorkspaceEdit, #34664 2017-12-15 11:25:29 +01:00
Matt Bierner e27c505a02 Support odd-indent sizes for jsdoc on enter rules
Fixes #16075
2017-12-13 14:43:20 -08:00
Matt Bierner 161c47988f Remove logging of TS Server start error message 2017-12-12 17:53:00 -08:00
Matt Bierner 8ab9497998 Make name clearer 2017-12-12 17:32:33 -08:00
Matt Bierner a845443e14 Clean up inferred project config logic 2017-12-12 17:26:14 -08:00