Commit Graph

1421 Commits

Author SHA1 Message Date
Matt Bierner
6b743d8c61 Prevent multiple markdown previews of the same type in the same editor group 2018-02-26 16:35:57 -08:00
Matt Bierner
4d95590a81 Use onDid* type event names in webview 2018-02-26 15:51:15 -08:00
Matt Bierner
26cbbea694 Add webview.show method to show a webview in a given group
Fixes #44430
2018-02-26 12:56:23 -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
Christof Marti
3de4e2f515 Log use of file search (fixes #43605) 2018-02-26 11:49:50 +01:00
Sandeep Somavarapu
1fe73ac78c 💄 #43216 2018-02-26 11:36:32 +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
Sandeep Somavarapu
a4cfd33d7a #30288 Refactor: Hold treeItems in the node 2018-02-23 18:04:34 +01:00
Alex Dima
8bfa7ffd2e Move IExtensionService up to /workbench/ (fixes #44281) 2018-02-23 17:38:24 +01:00
Julien Roncaglia
29f6d542b8 Don't alias ThemeIconCategory 2018-02-23 13:45:22 +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
cd21d906ca [folding] fold comments / region 2018-02-23 08:31:06 +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
Benjamin Pasero
466ef767bb notifications - tweak wording of messages 2018-02-20 08:31:06 +01:00
Benjamin Pasero
9ab2056393 notifications - remove old message service and adopt new one 2018-02-19 17:57:12 +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
c37e742023 Hookup basic webview.viewColumn 2018-02-15 15:27:39 -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
950574c378 Fix #32012 2018-02-14 13:38:20 +01:00
Sandeep Somavarapu
8b827b40d7 Fix #43608 2018-02-14 10:13:22 +01:00
Sandeep Somavarapu
433c624560 Fix #43466 2018-02-13 12:36:21 +01: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
Benjamin Pasero
3a8d09ebec use Schemas.untitled everywhere 2018-02-09 12:35:31 +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
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
Sandeep Somavarapu
19e54fd1fd Fix #42582 2018-02-05 12:10:21 +01:00
Johannes Rieken
0edcdab82e undo workspace edit changes for now, #10659 2018-02-01 15:30:41 +01:00
Andre Weinand
7e2f7fd802 check breakpoint validity; fixes #42478 2018-02-01 01:10:51 +01:00
Rob Lourens
93681eb439 Fix #42624 - add _ between extension ID and sequence number in log folder name 2018-01-31 09:37:59 -08:00
Benjamin Pasero
648c46deee API: clarify that vscode.openFolder also works with workspace files 2018-01-31 10:53:00 +01:00
Joao Moreno
b543a60cff Merge branch 'scm-input-validation-provider' 2018-01-30 19:37:49 +01:00
Joao Moreno
7b9368ebc7 change to validateInput 2018-01-30 19:33:44 +01:00
Rob Lourens
5109beb79c Include windowId in per-extension log folder name 2018-01-29 14:12:12 -08:00
Andre Weinand
4a01f5af86 Merge commit 'e09d5fc5247025184620ce062eb40581dc4480e1' into aweinand/debugAdapterExecutable 2018-01-29 16:08:35 +01:00
Benjamin Pasero
c567386efc Merge pull request #42314 from Microsoft/ben/list-mode
Introduce and adopt workbench.list.openMode
2018-01-29 15:03:13 +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
Benjamin Pasero
6adbd5b2a2 💄 multi root API 2018-01-28 17:58:58 +01: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