Commit Graph

4303 Commits

Author SHA1 Message Date
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
Sandeep Somavarapu b25c1947c6 #41752 Update extension point 2018-01-22 18:02:20 +01:00
Martin Aeschlimann 8500a2ec53 Keywords and Storage.types have the same color in Dark theme for Go. Fixes #41822 2018-01-22 11:26:40 +01: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 9e928dbedc Pick up latest TS insiders 2018-01-19 15:21:20 -08:00
Ramya Achutha Rao f57b024b18 Use latest emmet helper that has fixes #33818 2018-01-19 10:51:24 -08:00
Matt Bierner b0a26a94c6 Add quick fix all for JS/TS
Fixes #40170
2018-01-18 17:22:58 -08:00
João Moreno b7588a82f3 Merge pull request #41763 from samervin/patch-1
Correct "branchs" to "branches" typo
2018-01-18 09:04:27 +01: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 88f535500d Fix build error caused by ts api change 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 5c26abe75c Pick up new TS version 2018-01-17 13:58:59 -08:00
Matt Bierner 1c07451dd1 Memoize TS API version checks 2018-01-17 13:44:50 -08:00
Sam Ervin 3c8ed9206f Correct "branchs" to "branches" typo 2018-01-17 11:50:38 -06:00
Sandeep Somavarapu 2ee65b3eaa #41752 Show contributed locales in the intellisense in language file 2018-01-17 17:25:53 +01:00
Benjamin Pasero b939d90808 fix #40224 2018-01-16 18:04:46 +01:00
Christof Marti ec1924769c Add alias for commands (#39778) 2018-01-16 11:05:00 +01:00
Christof Marti 079b3090e1 Updgrade markdown-it (fixes #40099) 2018-01-16 10:17:23 +01:00
Pascal Fong Kye b36655544f fix: wrap current node when no selection and cursor on opening or closing tag (#41602) 2018-01-14 16:52:47 -08:00
Ramya Achutha Rao 05854360cc Fix typo 2018-01-14 12:35:38 -08:00
Ramya Achutha Rao 65f1bd4b25 Allow hex color completions from emmet 2018-01-12 16:07:53 -08:00
Ng Yik Phang cc6f165f2d Use HTTPS for npm package.json auto-complete
Fixes https://github.com/Microsoft/vscode/issues/41511
2018-01-12 14:41:59 +08:00
Ramya Achutha Rao ca023a700f Move absolute path check to avoid dependency on path in emmet helper 2018-01-11 19:01:53 -08:00
Martin Aeschlimann c101dd9d7c Merge pull request #41378 from krvajal/yaml-indentation
[ext/yaml] add indentation rules configuration
2018-01-11 17:44:59 +01:00
Martin Aeschlimann 64ced3e40b [html/css/scss/less] Textual suggestions missing in 1.19.0. Fixes #40349 2018-01-11 16:18:13 +01:00
Martin Aeschlimann 5be173790a [seti] ts icon should be blue. Fixes #40691 2018-01-11 11:10:54 +01:00
Christof Marti 1f064796b8 Register content provider (again) (fixes #40557) 2018-01-10 14:52:52 +01: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
Miguel Carvajal 1aa00f53bc [ext/yaml] add indentation rules configuration 2018-01-10 03:37:45 -03:00
Dirk Baeumer 105d2d8241 Fixing compile error 2018-01-09 11:48:18 +01:00
Ramya Achutha Rao f4ed56b0d6 Ignore php tag when deciding if cursor is inside open tag Fixes #41216 2018-01-08 18:56:51 -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 570b032d05 Update to latest TS 2.7 insiders 2018-01-08 08:45:17 -08:00
Matt Bierner 0a42cc1c8c Save off full ts completion entry 2018-01-08 08:45:17 -08:00
Sergey Kintsel 31baddd594 Fix typo in MergeDecorator class name 2018-01-08 12:09:08 +01: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
Johannes Rieken 6b8d750ac2 allow code-snippets-files from extensions, #13182 2018-01-05 11:04:28 +01:00
Matt Bierner 99ff3eb7f4 Pull in latest C# grammar
Fixes #40911
2018-01-04 13:48:21 -08:00