Commit Graph

791 Commits

Author SHA1 Message Date
Matt Bierner
d7e0604ec6 Prototype webview widget
Start prototyping a webview widget. Code is still super rough
2018-04-06 13:29:21 -07:00
André Weinand
4cd09ff11e reify the DebugAdapter; fixes #45129 2018-04-06 16:42:11 +02:00
Matt Bierner
78707964d0 Reduce duplicate state for active webviews 2018-04-06 00:15:07 -07:00
Matt Bierner
c14e30aeb4 Show error when webview restore fails 2018-04-05 19:18:55 -07:00
Matt Bierner
caee7a5789 Working on progress indicator when loading webview 2018-04-05 10:16:39 -07: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
Johannes Rieken
98d0b747c2 fix #46239 2018-03-29 12:16:20 +02:00
Christof Marti
ea1e57b3ab Multi-select list (#45589) 2018-03-26 22:46:02 +02:00
Dirk Baeumer
6577bde536 Task query and execution polish 2018-03-26 17:04:55 +02:00
Johannes Rieken
addd44d6b8 simplified resolve rename location proposal, #7340 2018-03-26 12:45:40 +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
Matt Bierner
67d8eebaf4 Rename webview.show to webview.reveal
Make it more clear that this command only reveals an existing webview

Fixes #44580
2018-03-20 16:16:05 -07: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
Dirk Baeumer
2f5061ff2d Implements #45664: Add API to query and execute tasks 2018-03-20 22:19:40 +01:00
Alex Dima
9077dd978d Remove not needed userExtensionsHome 2018-03-20 17:31:47 +01:00
Alex Dima
262134cfd8 Reduce extension host IInitData 2018-03-20 16:55:38 +01:00
Johannes Rieken
ddf5ecd46c wire up progress/cancellation, #45000 2018-03-20 14:51:23 +01:00
Johannes Rieken
73e3488685 remote - move out search provider, #45000 2018-03-20 14:51:22 +01:00
Johannes Rieken
5b8eea4b22 remote - also remove addWorkspaceFolder from protocol 2018-03-20 12:15:46 +01: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
André Weinand
f1404198c3 proposed logMessage API; fixes #45643 2018-03-16 17:08:46 +01:00
Matt Bierner
82084be1bc Switch to use vscode-resource scheme in webviews
Fixes #45784
2018-03-14 11:25:40 -07:00
Martin Aeschlimann
c65b881d16 [folding] add maxRanges to folding provider request 2018-03-13 17:49:09 +01:00
Johannes Rieken
e9d92ca9a7 align names, add RenameContext-type #7340 2018-03-13 11:59:32 +01:00
Johannes Rieken
78a2f08d69 rename to RenameInformation, #7340 2018-03-02 17:28:16 +01:00
Sandeep Somavarapu
10438e9c5d Fix #44735 2018-02-28 15:51:23 +01:00
Matt Bierner
b60267b17c Delete webview input on dispose 2018-02-28 00:25:13 -08:00
Matt Bierner
a989220093 Add title to webviewCreate
Part of #44579
2018-02-28 00:25:13 -08: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
Alex Dima
6aadb1ad40 Send text editor properties updates in a single event 2018-02-26 16:51:57 +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
Martin Aeschlimann
0faa5d117c folding provider: first version 2018-02-22 14:13:22 +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
Sandeep Somavarapu
f965a2c51e Fix #43197 2018-02-13 11:34:56 +01:00
Sandeep Somavarapu
ea787762db #28974 Introduce place holder icons for nodes without icons 2018-02-09 18:24:00 +01:00
Sandeep Somavarapu
125ac04d1f Refactor custom views:
- Custom view service to get tree item viewer
- Custom view service to register the data provider
2018-02-09 18:24:00 +01:00
Alex Dima
53df86adbe Use URI for the SCM part of the protocol 2018-02-08 16:18:47 +01:00
Alex Dima
f322baeb66 Use URI for ExtHostDocumentsShape methods 2018-02-08 16:18:47 +01:00
Alex Dima
5b1d34e435 Use URI for IDocumentsAndEditorsDelta.removedDocuments 2018-02-08 16:18:47 +01: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
c0a5a09ab4 fix #33528 2018-01-29 12:58:24 +01:00
Johannes Rieken
403d5d410a Merge branch 'master' into resolveInitialRenameValue 2018-01-26 17:08:21 +01:00
Joao Moreno
888f74495d lineWarningLength -> validationProvider 2018-01-26 16:43:53 +01:00
Andre Weinand
22c5903847 make addBreakpoint/removeBreakpoint sync 2018-01-26 12:51:15 +01:00