Commit Graph

394 Commits

Author SHA1 Message Date
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
Sandeep Somavarapu
3dc748ccca Merge branch 'master' into sandy081/userDataProvider 2019-09-03 14:55:28 +02:00
Johannes Rieken
86dce614df debt - remove old proposed API: vscode.ExtensionContext#executionContext 2019-09-02 11:41:03 +02:00
Sandeep Somavarapu
bb1866ab4e User data sync: Implement starting flow
- user identity
- user login provider
- user data provider
- activation event
- status bar UI
2019-08-25 20:25:16 +02:00
Rob Lourens
0be6954e88 Tweak deprecation messag #69335 2019-08-23 10:22:15 -07:00
Johannes Rieken
62c31b7154 add SymbolTag, make tag a propertiy, #23927 2019-08-23 09:03:18 +02:00
Johannes Rieken
8b0bc473cd CompletionItemKindModifier -> CompletionItemKindTag, #23927 2019-08-23 08:12:33 +02:00
Rob Lourens
0f73473c08 Add deprecation warning for rootPath #69335 2019-08-22 17:46:41 -07:00
Johannes Rieken
a06015b536 have only one way of enforcing proposed API 2019-08-22 14:21:59 +02:00
Benjamin Pasero
719cdaa87c web - implement callback auth flow 2019-08-22 10:43:41 +02:00
Johannes Rieken
1848b16313 tweak UI for deprecated completions, update API proposal #23927 2019-08-22 10:28:55 +02:00
Johannes Rieken
21de711cdf remove proposed API vscode.commands.onDidExecuteCommand 2019-08-15 15:24:40 +02:00
Johannes Rieken
2700f41dab use desktop and web ext host logging service 2019-08-12 14:47:20 +02:00
Daniel Imms
37e0b8e229 Add terminal.integrated.automationShell
Fixes #78497
2019-08-09 09:40:38 -07:00
Johannes Rieken
7a6f22b3af rename rpcService to extHostRpcService 2019-08-09 09:51:22 +02:00
Johannes Rieken
c89d568be6 💄 2019-08-09 09:47:41 +02:00
Johannes Rieken
42b5eb3bf3 add ExtHostStorage to injector, rename 'createApiFactory' to 'createApiFactoryAndRegisterActors' 2019-08-08 15:08:10 +02:00
Johannes Rieken
419dc83a5d less argumenst, more services in api factory 2019-08-08 13:16:14 +02:00
Johannes Rieken
66b499a016 register ExtHostExtensionService as singleton 2019-08-08 12:53:01 +02:00
Johannes Rieken
bc35789e14 move api.impl to /common/ 2019-08-08 11:13:14 +02:00
Johannes Rieken
81456a7212 move api/common to api/browser 2016-01-11 14:44:13 +01:00
Johannes Rieken
2e95c110f4 use weak references to track TextDocument that were given out to consumers 2016-01-11 12:50:40 +01:00
Johannes Rieken
d625b55e9e no closeTextDocument 2016-01-08 15:44:48 +01:00
Johannes Rieken
f484123616 refine API, add closeTextDocument call 2016-01-08 12:04:00 +01:00
Johannes Rieken
cff6f0ae6a sketching up some API 2016-01-05 17:58:40 +01:00
Johannes Rieken
fa1c52de3b towards code lens lifecycle, still #1698 2016-01-04 18:48:19 +01:00
Johannes Rieken
de3e63c058 💄 trim [ExtHost|MainThread]Commands classes 2016-01-04 18:48:18 +01:00
Johannes Rieken
048581bdd1 💄 registerApiCommand 2016-01-04 12:44:56 +01:00
Johannes Rieken
1da94d28ee Add preserveFocus flag to showTextDocument and OutputChannel.show, fixes #1045 2015-12-23 11:03:51 +01:00
Johannes Rieken
4dfa345e91 api - allow to provide a cancellation token to findFiles. Fixes #1553 2015-12-22 09:29:49 +01:00
Benjamin Pasero
788201b268 debt - move quick open service to common 2015-12-21 19:07:56 +01:00