Commit Graph

1329 Commits

Author SHA1 Message Date
Sandeep Somavarapu
de24732aa9 Implement #39574 2018-01-23 17:28:53 +01:00
Joao Moreno
1cacde3496 Revert "add 'configuration' (read uri/path) of workspace config file, #41408"
This reverts commit 3ecef8c1dd.
2018-01-23 11:23:02 +01:00
Johannes Rieken
3ecef8c1dd add 'configuration' (read uri/path) of workspace config file, #41408 2018-01-23 10:17:51 +01: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
3cb83387be Use CodeActionKind.append 2018-01-22 11:48:35 -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
Johannes Rieken
54240a7bd3 also add the workspace name, #41408 2018-01-16 17:49:19 -08:00
Johannes Rieken
42de6cc82f add TextSearchOptions, only search in folder contributed by provider, #41536 2018-01-16 12:31:40 -08:00
Johannes Rieken
4b5c0ec9d1 remote - a few more todo-tags after a 'file'-scheme search 2018-01-16 10:59:37 -08:00
Sandeep Somavarapu
f86c0f9a91 Remove the handle from the system when handle changes 2018-01-16 17:06:47 +01:00
Sandeep Somavarapu
c66517cf0d Fix #40018 2018-01-16 17:06:47 +01:00
Johannes Rieken
c0278341ed link detection for remote file systems, #41482 2018-01-15 17:36:00 -08:00
Johannes Rieken
c677bf31e2 write meta.json file #41408 2018-01-15 15:18:13 -08:00
Johannes Rieken
9401875dfc more type fixes for #36946 2018-01-15 11:25:27 -08:00
Johannes Rieken
97a199d02c wire up types, #36946 2018-01-15 11:12:00 -08:00
Johannes Rieken
788486ccc8 Merge pull request #41561 from Microsoft/incomplete
When trigger suggest for incomplete completions, use new kind
2018-01-15 10:04:40 -08:00
Sandeep Somavarapu
f94603326d Fix #41535 2018-01-15 16:10:53 +01:00
Sandeep Somavarapu
5b26eccb33 #41535 Adopt TreeItem to have resourceUri 2018-01-15 10:09:28 +01:00
Ramya Achutha Rao
f5a5097918 When trigger suggest for incomplete completions, use new kind 2018-01-12 16:54:21 -08:00
Johannes Rieken
4df995c240 remote - manage some todos 2018-01-12 16:46:41 -08:00
Johannes Rieken
8046a03660 root in fs provider is optional, #36177 2018-01-12 16:21:59 -08:00
Johannes Rieken
0b9b336009 refine text search api, #41536 2018-01-12 08:14:18 -08:00
Sandeep Somavarapu
3d43ef7c46 Use handle for id if it is of type string 2018-01-12 15:07:17 +01:00
Sandeep Somavarapu
71cc864c49 #40018 Revert to use label as id. Do not use index instead have a counter for duplicate labels 2018-01-12 13:55:43 +01:00
Sandeep Somavarapu
2315df4bb8 Revert "Fix #40018"
This reverts commit 7ffffa09b3.
2018-01-12 13:55:43 +01:00
Benjamin Pasero
3b4fa88743 add vscode.removeFromRecentlyOpened command (fixes #41391) 2018-01-12 10:47:58 +01:00
Johannes Rieken
73ee03ed51 remote - sketch up find in files logic 2018-01-11 16:22:57 -08:00
Johannes Rieken
d014618fd1 remote - some renames, prep for more search 2018-01-11 10:21:22 -08:00
Sandeep Somavarapu
7ffffa09b3 Fix #40018 2018-01-10 11:25:21 +01:00
Johannes Rieken
7945915d4d remote - better reads 2018-01-09 10:16:11 -08:00
Sandeep Somavarapu
e3367714e5 Fix #40018 2018-01-09 18:47:25 +01:00
Joao Moreno
c3ed46fa72 remove console.log 2018-01-09 16:33:46 +01:00
Joao Moreno
534e8f46fb fixes #41145 2018-01-09 16:29:16 +01:00
Joao Moreno
9914a95ddf buffer spdlog calls in main until singleton
fixes #41218
2018-01-09 15:55:10 +01:00
Alex Dima
ed5ae61e12 Go through an implementation switch for ITextBuffer 2018-01-05 17:27:20 +02:00
Alex Dima
48efc7fd2f Encapsulate ITextSource in ITextBufferFactory 2018-01-05 16:53:55 +02:00
Alex Dima
d7e8ced0bd Rename MirrorModel to MirrorTextModel 2018-01-05 11:26:56 +02: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
Matt Bierner
afb67f4677 Remove unused code action enum and mark edits as always being a workspaceedit 2018-01-04 11:29:21 -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
Matt Bierner
9d776df909 Mark a few fields in ExtensionMemento as readonly 2018-01-03 16:10:17 -08: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
Benjamin Pasero
e983daa165 Cannot read property 'language' of null (fixes #40484) 2017-12-19 08:09:11 +01:00
Alex Dima
07ac57204a Adopt new TestRPCProtocol; renames 2017-12-18 12:23:48 +01:00
Rob Lourens
aa6e38762d Fix #40275 - check enableProposedApi flag for logger API 2017-12-15 11:01:31 -08:00
Daniel Imms
3560676d3c Merge pull request #38132 from cleidigh/terminal-api-cwd/add
Add cwd to createTerminal via TerminalOptions for extension API  Addresses: #37709
2017-12-15 09:44:26 -08:00
Johannes Rieken
3bac9bd027 fix #40307 2017-12-15 17:11:07 +01:00