Commit Graph

604 Commits

Author SHA1 Message Date
Alex Dima
8e5a374372 Fixes #44956: Propagate extension activation errors in the activate() calls 2018-04-06 11:55:46 +02:00
Johannes Rieken
8b470712c9 make diagnostics read api public, #30075 2018-04-06 11:08:12 +02:00
Matt Bierner
dd21d3520a Add webview restoration api proposal (#46380)
Adds a proposed webiew serialization api that allows webviews to be restored automatically when vscode restarts
2018-04-03 18:25:22 -07:00
Matt Bierner
094a469d51 Working on adding comment api 2018-04-03 18:00:28 -07:00
Christof Marti
ea1e57b3ab Multi-select list (#45589) 2018-03-26 22:46:02 +02:00
Alex Dima
a9704b5c56 Fixes #46568: Graduate visible ranges API out of proposed 2018-03-26 17:55:17 +02:00
Dirk Baeumer
6577bde536 Task query and execution polish 2018-03-26 17:04:55 +02:00
Benjamin Pasero
3d81ac21ca Leverage notification progress support for progress API (#45958)
* Leverage notification progress support for progress API

fixes #44090

* only allow positive total/worked values

* drop total/worked in favour of percentage

* make sure to dispose CancellationTokenSource after use

* make the cancellation button optional
2018-03-21 18:06:41 +01:00
Alex Dima
99b5cb6c9c Avoid registering api commands on the renderer 2018-03-21 12:26:00 +01:00
Johannes Rieken
91b949634d Merge pull request #46177 from Microsoft/sandy081/treeViewAPI
API - Expose TreeView in API
2018-03-21 10:16:58 +01:00
Matt Bierner
ea1fed9616 Use viewType instead of uri for webviews
As discussed in #45994, move from using a uri to using a viewType. The view type is shared among all webviews of a given type, such as all markdown previews

Fixes #44575
2018-03-20 14:44:10 -07:00
Matt Bierner
27a17935b8 Move webview to use onDidChangeViewState event
After discussions, we settled on making the webview private unlike `TextEditors`. This means that webview events will live on the webview object itself

Fixes #44571
2018-03-20 14:30:39 -07:00
Dirk Baeumer
2f5061ff2d Implements #45664: Add API to query and execute tasks 2018-03-20 22:19:40 +01:00
isidor
f470ce19e7 textModel: add isForSimpleWidget property so these model are not synchronized 2018-03-20 16:25:10 +01:00
Johannes Rieken
73e3488685 remote - move out search provider, #45000 2018-03-20 14:51:22 +01:00
Sandeep Somavarapu
edaa790a07 Implement createTreeView API 2018-03-20 17:50:47 +05:30
Matt Bierner
c48acbb1c9 Move log level API to env
Moves the log level API to env
2018-03-19 12:52:55 -07:00
Johannes Rieken
a116e73a94 more renames, #7340 2018-03-19 16:33:43 +01:00
Dirk Baeumer
fc7051a897 Cleaner API to query tasks 2018-03-16 11:55:18 +01:00
Johannes Rieken
5685bcd524 try a different variant of getDiagnostics... #30075 2018-03-15 15:05:45 +01:00
Johannes Rieken
8d022273dd add DiagnosticRelatedInformation, #10271 2018-03-15 11:43:31 +01:00
Matt Bierner
82084be1bc Switch to use vscode-resource scheme in webviews
Fixes #45784
2018-03-14 11:25:40 -07:00
Johannes Rieken
f4c997a5c9 back to simple getDiagnostics-function, #30075 2018-03-14 12:42:38 +01:00
Johannes Rieken
3aea86db79 proposed event for when diagnostics change, #30075 2018-03-13 17:48:54 +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
Dirk Baeumer
ddd44e0ae9 Fixes #45576: Allow users to control quoting in tasks 2018-03-12 12:09:16 +01:00
Johannes Rieken
675e09114f ignore and blame bad content provider events, #44398 2018-03-02 16:05:21 +01:00
Matt Bierner
a989220093 Add title to webviewCreate
Part of #44579
2018-02-28 00:25:13 -08:00
Benjamin Pasero
f2ffc972c2 Make workspace folder modification API stable (#44049)
* make API stable

* make deleteCount: number | undefined | null
2018-02-27 14:39:02 +01:00
Alex Dima
20ed3d9632 Fixes #44424: Add proposed API - TextEditor.visibleRanges 2018-02-26 21:28:09 +01:00
Matt Bierner
2038b8fc7f Webview API prototype 3 (#44307)
* Webview API prototype 3

Part of #43713

Third try at refining the webview api. This pass reworks  #44165.  Major changes:

- Adds an `id` field to webviews. The id is provided by the extension and identifies the webview. It is used with the new event handling apis.

- Adds a new `onDidChangeActiveEditor` api. This is similar to `onDidChangeActiveTextEditor` but is also fired when you change webviews. It replaces the old `onFocus` and `onBlur` events on the webview itself

- Adds an `onDispose` event ot webviews. This is fired when a webview is closed by the user

- Perist webview state when the editor group changes. This is enabled for all webviews, not just those with keep alive.

* Throw error when trying to access disposed webview

* Improving webview documentation

* Clean up dispose management

* Throw if we receive a bad handle

* Move more event handling to input

* Simplify input updating

* Remove extra container property

* Fixing md security alert button

* Remove extra update container call

* Restore syncing of preview to active editor

* Fixing posting to webview

* Debounce preview updates

* Remove previewUri

* Enable direct window.postMessage instead of window.parent.postMessage

* Fixing scroll position not preserved when updating previews

* Revert parent.postMessage change.

Old behavior was correct

* Properly hide webview container on tab switch

* Make sure we only handle scroll events for the correct document

* Don't try setting negative scroll

* Revert vs code whitespace change
2018-02-26 10:06:50 -08:00
Christof Marti
3de4e2f515 Log use of file search (fixes #43605) 2018-02-26 11:49:50 +01:00
Julien Roncaglia
03f66b39dd Merge remote-tracking branch 'upstream/master' into file_as_folder_in_custom_tree 2018-02-23 22:01:38 +01:00
Julien Roncaglia
46e9101dc1 ThemeIconCategory -> ThemeIcon 2018-02-23 22:00:11 +01:00
Sandeep Somavarapu
d9e9be8b0d Implement #30288 2018-02-23 18:04:35 +01:00
Alex Dima
8bfa7ffd2e Move IExtensionService up to /workbench/ (fixes #44281) 2018-02-23 17:38:24 +01:00
Julien Roncaglia
03caa411b5 Allow extensions to specify custom tree view resoure type
The FileKind was previously guessed from the collapsability of the item,
extensions now have the capability to set it manually.

Fixes #43216
2018-02-23 13:38:37 +01:00
Martin Aeschlimann
0faa5d117c folding provider: first version 2018-02-22 14:13:22 +01:00
Andre Weinand
5d65365136 make breakpoints API final; fixes #43492 2018-02-20 16:40:45 +01:00
Matt Bierner
e1f33fbb07 Rename ext host / main thread editor to textEditor
Rename to make it more clear that these APIs are for `vscode.TextEditor`
2018-02-15 15:32:16 -08:00
Matt Bierner
3412eab2ec Webview Api Prototype (#42690)
* Webview api

* Cleaning up markdown webview

* Hooking up dispose

* Fix some merge errors

* Use custom context key to show markdown title bar contributions

* Add basic on focus and on blur events

* Fixing find widget in webview

* Hookup _isDisposed

* Use new extension resource scheme to load markdown extension resources

* Documenting keep alive
2018-02-14 18:52:26 -08:00
Joao Moreno
b543a60cff Merge branch 'scm-input-validation-provider' 2018-01-30 19:37:49 +01:00
Andre Weinand
81142e2cb5 support for debugAdapterExecutable; fixes #33801 2018-01-29 14:27:48 +01:00
Johannes Rieken
609bcbf2b4 make resolveInitialRenameValue be proposed api 2018-01-26 18:02:27 +01:00
Joao Moreno
888f74495d lineWarningLength -> validationProvider 2018-01-26 16:43:53 +01:00
Benjamin Pasero
36ff08f1ec more fixes for multi root API 2018-01-26 15:09:04 +01:00
Benjamin Pasero
7b29aa6a1d Merge branch 'master' into ben/workspace-api 2018-01-26 08:09:31 +01:00
Andre Weinand
eba681fed8 debug API to create/remove breakpoints; fixes #42173 2018-01-26 01:09:30 +01:00
Benjamin Pasero
d35e6e3f49 Merge branch 'master' into ben/workspace-api 2018-01-24 13:25:06 +01:00