Commit Graph

430 Commits

Author SHA1 Message Date
Alexandru Dima
41be9a6142 Merge remote-tracking branch 'origin/master' into alex/semantic-exploration 2019-11-18 08:59:14 +01:00
Alexandru Dima
ca81ca47db More changes for #81574 2019-11-15 18:02:35 +01:00
Alex Dima
15beb36ccf Merge remote-tracking branch 'origin/master' into alex/semantic-exploration 2019-11-14 09:16:10 +01:00
Andre Weinand
4a61f33994 proposed API for creating debug uri 2019-11-13 18:18:46 +01:00
Matt Bierner
fe7e4b231b Use log service instead of console.log in extHostwebview
For #84283
2019-11-12 23:00:29 -08:00
Johannes Rieken
8e64adbbde use LogService in extHostLanguageFeatures and extHostMessageService, #84283 2019-11-11 12:22:55 +01:00
Johannes Rieken
34bf3d97eb use LogService in extHostDiagnostics, #84283 2019-11-11 09:50:05 +01:00
Johannes Rieken
41dd402156 use LogService in extHost.api.impl, #84283 2019-11-11 09:38:21 +01:00
Alexandru Dima
7761e75deb API tweak from the standup discussion 2019-11-07 15:26:22 +01:00
Alex Dima
57995de234 Merge remote-tracking branch 'origin/master' into alex/semantic-exploration 2019-11-06 08:51:39 +01:00
Alex Ross
ab89935fd3 First pass at resolving task definition and passing back to custom execution (#83764)
First pass at resolving task definition and passing back to custom execution. It only currently resolves simple predefined variables, no input, command, or defaultBuildTask.

Part of #81007
2019-11-05 16:35:21 +01:00
Alexandru Dima
308ff31f95 Merge remote-tracking branch 'origin/master' into alex/semantic-exploration 2019-11-05 09:44:55 +01:00
Johannes Rieken
5a4e23fb31 update names 2019-11-01 17:03:56 +01:00
Johannes Rieken
dddf8faced add event for create and delete operations 2019-11-01 12:30:36 +01:00
Benjamin Pasero
b7b21844e7 api - fold app uri creation into asExternalUri (fix #82884) 2019-10-29 07:18:19 +01:00
Johannes Rieken
df17be45e3 move call hierarchy API to stable, #70231 2019-10-28 17:36:50 +01:00
Johannes Rieken
b802676caa call it CallHierarchyProvider instead of CallHierarchyItemProvider #70231 2019-10-25 10:18:17 +02:00
Matt Bierner
06def35ca5 Finalize asExternalUri
Fixes #82896
2019-10-21 11:18:36 -07:00
Benjamin Pasero
62ea960353 API: Finalize env.uiKind (fixes #82883) 2019-10-21 18:31:37 +02:00
Matt Bierner
721886ce10 Allow registerWebviewEditorProvider to pass in a set of initial webview options
Fixes #82128
2019-10-17 10:50:34 -07:00
Matt Bierner
d4cebcd450 Move filling in of default localResourceRoots into extHost
The main VS Code process should not need to know about the default values for `localResourceRoots`. Leave this up to the extension instead
2019-10-15 11:31:25 -07:00
Joao Moreno
4a81920398 Revert "scm: make tree rendering opt-in via proposed API"
This reverts commit afa911d942.
2019-10-11 19:10:27 +02:00
Alex Ross
dc4b1c231c Rename CustomExecution2 to CustomExecution
Part of #80375
2019-10-11 14:43:23 +02:00
Joao Moreno
afa911d942 scm: make tree rendering opt-in via proposed API
fix #82203
2019-10-10 18:37:38 +02:00
Johannes Rieken
904ab2364e in extension land prefer URI.isUri, fixes #81819 2019-10-07 08:30:18 +02:00
Matt Bierner
8079ff0001 Rename resolveExternalUri to asExternalUri
#81131
2019-09-30 14:22:47 -07:00
Matt Bierner
e0762af258 Move webview content state into webviewPanel instead of webviewEditor
Split out from #77131

The current webview editor api is very procedural. This model has some problems when it comes to supporting editing resources, but actually does make a lot of sense for webviews that aren't backed by real file system resources. For example, if you have a webview that edits some document in the cloud, you should not be required to implement a custom file system provider just to enable basic saving.

This change moves the `onWillSave` and `webviewEditorState` properties back onto `WebviewPanel` instead of keeping them specific to `WebviewEditor`. The save implementation does not fully work yet, as the will require #81521
2019-09-26 18:05:37 -07:00
Matt Bierner
0506f7f736 Make sure image views (and custom editors) work properly on the web
This fixes an issue where webviews for custom editors did not have any associated extension information, which caused them try reading `file:` uri resources instead of remote uri resources
2019-09-25 16:25:39 -07:00
Alexandru Dima
7e4991aa33 WIP 2019-09-25 17:49:27 +02:00
Isidor Nikolic
c4a6fc1078 Merge pull request #80673 from dgozman/fix-62419
Allow debug session to share repl with its parent; fixes #62419
2019-09-19 16:05:08 +02:00
Christof Marti
83c0e378d0 Serialize-friendly interface 2019-09-19 09:42:17 +02:00
Christof Marti
715b6c5792 Add extension id that triggered the activation event 2019-09-19 09:42:17 +02:00
Matt Bierner
27bac598cc Basic implementation of resolveExternalUri 2019-09-18 18:20:26 -07:00
Dmitry Gozman
e4d4b43f35 Allow debug session to share repl with its parent; fixes #62419
Introduced DebugSessionOptions passed to debug.startDebugging which
encapsulated DebugConsoleMode to control this behavior.
2019-09-18 11:45:39 -07:00
Sandeep Somavarapu
7ccfc2dcc5 remove user data api implementation 2019-09-18 12:21:34 +02:00
Sandeep Somavarapu
5cc29271b5 Introduce id and user data sync store registry 2019-09-17 16:25:06 +02:00
Sandeep Somavarapu
317ed7e1a5 Merge branch 'master' into sandy081/userDataProvider 2019-09-15 19:52:27 +02:00
Sandeep Somavarapu
4ffcfff8b9 prepare to merge to master 2019-09-15 19:41:26 +02:00
Benjamin Pasero
f8effd5fad api - introduce env.uiKind (web, desktop) 2019-09-13 17:58:30 +02:00
Matt Bierner
7a219ab632 Adding concept of a state for webview editors
#77131

This information will be used to show the dirty indicator and also enable/disable save
2019-09-12 14:04:54 -07:00
jrieken
8e5edc0eda use Outgoing/Incoming terminology 2019-09-11 13:25:53 +00:00
Sandeep Somavarapu
65f14490b7 Merge branch 'master' into sandy081/userDataProvider 2019-09-11 13:42:07 +02:00
jrieken
e6df99aed8 implement CallsFrom/CallsTo proposal 2019-09-11 08:01:13 +00:00
Matt Bierner
011836a150 Prototyping custom editors (#77789)
* Custom Editor exploration

For #77131

Adds a prototype of custom editors contributed by extensions. This change does the following:

- Introduces a new contribution point for the declarative parts of a custom editor
- Adds API for registering a webview editor provider. This lets VS Code decided when to create a webview editor
- Adds an `openWith` command that lets you select which editor to use to open a resource from the file explorer
- Adds a setting that lets you say that you always want to use a custom editor for a given file extension
- Hooks up auto opening of a custom editor when opening a file from quick open or explorer
- Adds a new extension that contributes a custom image preview for png and jpg files

Still needs a lot of UX work and testing. We are also going to explore a more generic "open handler" based approach for supporting custom editors

Revert

* Re-use existing custom editor if one is already open

* Don't re-create custom editor webview when clicking on already visible custom editor

* Move customEditorInput to own file

* First draft of serializing custom editor inputs

* Use glob patterns instead of simple file extensions for matching custom resoruces for custom editors

* Add descriptions

* Try opening standard editor while prompting for custom editor

* Make sure we hide image status on dispose

* Make sure we restore editor group too

* Use glob patterns for workbench.editor.custom

* Allow users to configure custom editors for additional file types

* Use filename glob instead of glob on full resource path

* Adding placeholder for prompt open with

* Add enableByDefault setting for editor contributions

* Enable custom editors by default and add `discretion` enum

Changes `enableByDefault` boolean to a `discretion` enum. This should give more flexibility if we want other options (such as forcing a given custom editor to always be used even if there are other default ones)

* Allow custom editors to specify both a scheme and filenamePattern they are active for

* Rework custom editor setting

* Don't allow custom editors to be enabled for all resources by a config mistake

* Replace built-in image editor with one from extension

* Adding reopen with command

* Improve comment

* Remove commented code

* Localize package.json and remove image

* Remove extra lib setting from tsconfig
2019-09-10 17:56:57 -07:00
Sandeep Somavarapu
be01168e52 support user data error handling 2019-09-10 17:32:02 +02:00
Sandeep Somavarapu
cc0f39133b fix compilation 2019-09-10 15:25:45 +02:00
Sandeep Somavarapu
cae7f1c4b9 Merge branch 'master' into sandy081/userDataProvider 2019-09-10 15:17:32 +02:00
Sandeep Somavarapu
6706c1792d fix calling proposed api 2019-09-05 00:12:15 +02:00
Daniel Imms
afe912070e Stabilize extension terminals (vscode.Pseudoterminal)
Fixes #78514
2019-09-04 11:04:45 -07:00
Johannes Rieken
6c0bb9ba4d make DecorationData a class and rename it to Decoration, #54938 2019-09-04 11:16:11 +02:00