Commit Graph

168 Commits

Author SHA1 Message Date
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
Matt Bierner
2f34618b87 Adding completion item kind enum 2017-09-20 19:21:45 -07:00
Matt Bierner
b34379e8f7 Take context as last argument 2017-09-20 19:21:45 -07:00
Matt Bierner
0283831aff Fix interfaces and move the function types into namespaces 2017-09-20 19:21:45 -07:00
Matt Bierner
89773f358e Update based on comments 2017-09-20 19:21:45 -07:00
Matt Bierner
377eabe614 Add optional CompletionContext to provideCompletionItems
Fixes #752

Adds a new overload of `provideCompletionItems` that takes a context argument. This context is currently used to provide the trigger character of the suggestion
2017-09-20 19:21:45 -07:00
rebornix
084849c2fa provideColorPresentations should have document in paramaters. 2017-09-20 13:44:57 -07:00
rebornix
d069e922ef Re #34366. Extensions define color formats. 2017-09-19 00:03:58 -07:00
rebornix
3753e0e1d2 Align signatures with other providers. 2017-09-08 14:11:44 -07:00
rebornix
3479d81d77 Fix #32235. Functional style formatter. Color range is all float number and remove fromHex, fromHSL methods. 2017-09-08 11:36:39 -07:00
Johannes Rieken
ed50fa2105 don't register resolve method when there is none, #4352 2017-09-08 10:40:01 +02:00