Commit Graph

278 Commits

Author SHA1 Message Date
Alex Dima
101c8ed9e3 Add scheme transformer 2018-04-18 12:13:27 +02:00
Johannes Rieken
6428c00286 move api to stable, #7340 2018-04-17 11:54:45 +02:00
Johannes Rieken
8c1e3a7b3c allow to return range or range and placeholder, #7340 2018-04-17 11:40:25 +02:00
Matt Bierner
5ff2ccfc28 CodeActionProvider.providedKinds (#47702)
Adds a new optional  `CodeActionProviderMetadata`.  This is passed in`registerCodeActionProvider` and contains a list of`CodeActionKinds` that the provider may return. The list is used for deciding when to show the `refactor` and `source action` context menus. It is not used for filtering the returned code actions

Possibly helps address #45383
2018-04-12 11:50:21 -07:00
Martin Aeschlimann
84318e5892 There should be an API command to execute the color provider like we have for code complete and others. Fixes #45867 2018-03-26 23:30:36 +02:00
Johannes Rieken
addd44d6b8 simplified resolve rename location proposal, #7340 2018-03-26 12:45:40 +02:00
Johannes Rieken
a116e73a94 more renames, #7340 2018-03-19 16:33:43 +01:00
Alex Dima
1a249fc4ec Serialize vscode.DocumentSelector 2018-03-19 12:07:08 +01:00
Johannes Rieken
8d022273dd add DiagnosticRelatedInformation, #10271 2018-03-15 11:43:31 +01:00
Martin Aeschlimann
c65b881d16 [folding] add maxRanges to folding provider request 2018-03-13 17:49:09 +01:00
Johannes Rieken
362485e390 some early sketches of a read api #30075 2018-03-13 15:52:08 +01:00
Johannes Rieken
e9d92ca9a7 align names, add RenameContext-type #7340 2018-03-13 11:59:32 +01:00
Johannes Rieken
e5be4d8f7d more strict type conversion #7340 2018-03-02 17:28:16 +01:00
Johannes Rieken
78a2f08d69 rename to RenameInformation, #7340 2018-03-02 17:28:16 +01:00
Martin Aeschlimann
0faa5d117c folding provider: first version 2018-02-22 14:13:22 +01:00
Matt Bierner
9c323a6142 Format extHostLanguageFeatures.ts 2018-02-08 15:06:56 -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
Johannes Rieken
609bcbf2b4 make resolveInitialRenameValue be proposed api 2018-01-26 18:02:27 +01:00
Johannes Rieken
403d5d410a Merge branch 'master' into resolveInitialRenameValue 2018-01-26 17:08:21 +01:00
Johannes Rieken
0f2cc682a0 Merge branch 'master' into rename-workspaceedit-proto 2018-01-23 17:19:06 +01: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
Johannes Rieken
dc31fa213b support interleaving file and text changes, basically rewrite bulk edit... 2018-01-19 17:54:54 +01:00
Krzysztof Cieslak
beedeba11b Add new API to communication layer 2018-01-16 20:59:33 +01:00
Matt Bierner
e8c76c4617 Fix inconsistent code action edit property names
**Bug**
We were using `edits` in some places and `edit` in others. This broke some use patterns for code actions
2018-01-04 11:46:52 -08:00
Alex Dima
54e7055c12 Rename IModel to ITextModel 2018-01-04 16:44:40 +02:00
Alex Dima
0721df783d Extract model types out of editorCommon.ts 2018-01-04 16:27:58 +02:00
Johannes Rieken
1299efd208 Merge pull request #41063 from mjbvz/move-code-action-from-proposed
Move new CodeAction Api from proposed to vscode.d.ts
2018-01-03 12:03:33 +01:00
Matt Bierner
8697a5e4ec Extract common logic for adding a new adapter in exthost
Extract function for the following pattern used a number of times in `ExtHostLanguageFeatures`:

```
const handle = this._nextHandle();
this._adapter.set(handle, new OutlineAdapter(this._documents, provider));
```
2018-01-02 15:54:48 -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
Johannes Rieken
966100d9fa Only accept WorkspaceEdit, #34664 2017-12-15 11:25:29 +01:00
Johannes Rieken
2d1e25598a ExtHostLanguageFeaturesShape, #40169 2017-12-14 15:07:44 +01:00
Alex Dima
ec75457f87 Don't rely on custom marshalling for $setLanguageConfiguration (#40169) 2017-12-14 12:40:08 +01:00
Johannes Rieken
e20f08b291 a little language features, #40169 2017-12-14 10:16:27 +01:00
Alex Dima
367dd10413 Rename RPCProtocol.get to RPCProtocol.getProxy (#36972) 2017-12-13 16:04:14 +01:00
Johannes Rieken
5f51de4851 Let the internal API only talk CodeAction, #34664 2017-11-24 10:51:27 +01:00
Johannes Rieken
e5c5a35e3a fix error when a symbol provider doesn't return a result 2017-11-16 15:03:36 +01:00
Johannes Rieken
c7c988c5af fix #38294 2017-11-15 10:29:02 +01:00
Matt Bierner
844a0cdde7 Fix #38184 2017-11-13 16:00:24 -08:00
Matt Bierner
be88547c66 Prototyping new CodeAction API (#36316)
* Add CodeAction Type

Adds skeleton on a new CodeActionType and allows codeActionProvider to return either `Command`s or `CodeAction`s

Move proposed CodeAction API to proposed and try using it in TS

Split CodeAction into quickfix and refactoring classes

Update proposed interface

Update for new API

Adding basic docs

* Support workspace edits and text edits in codeactions

* Remove placeholders

* Resolving conflicts and making PR suggested changes

* Fix quick fix test

* Revert change to only use `CodeAction` instead of `CodeAction | Command` in modes since this will break `vscode.executeCodeActionProvider`
2017-11-08 16:07:34 -08:00
Johannes Rieken
04fc390148 fix #37808 2017-11-08 10:33:37 +01:00
Johannes Rieken
6dc7e364d7 debt - remove some ts-ignored things 2017-11-07 17:23:19 +01:00
Erich Gamma
c536efdfbc Enabled the noUnusedLocals and added @tsignore 2017-11-07 13:13:41 +01:00
Johannes Rieken
1df5c0240f manually track workspace symbols for later resolving, #36941 2017-10-26 11:38:50 +02:00
Johannes Rieken
65a2d30efe color - jsdoc and tiny tweaks for color provider api 2017-10-16 12:43:21 +02:00
Johannes Rieken
c6ac991a52 debt - remove apiUsage telemetry 2017-10-11 15:40:35 +02:00
Johannes Rieken
12439dfbb6 debt - remove obsolete URI casts 2017-10-11 13:01:10 +02:00
Johannes Rieken
229093ec9e debt - remove unused 'usesCommandLink' telemetry 2017-10-02 14:40:03 +02:00
kieferrm
9d5589dbf4 update GDPR todos 2017-09-25 18:36:43 -07:00
kieferrm
03bbbbb6b1 review GDPR classifications 2017-09-25 18:36:43 -07:00
kieferrm
a65363876a more GDPR classification 2017-09-25 18:36:43 -07:00