Commit Graph

140 Commits

Author SHA1 Message Date
Alex Ross
462a8be7d4 Add title API for tree views (#80623)
* First pass at set view title

* Change to get/set instead of setTitle

and get the name of the view from the extension contributions
2019-09-11 10:56:45 +02: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
Alex Ross
ca4c1bf7a0 Go to ext host for system default shell and args for tasks
Fixes https://github.com/microsoft/vscode-remote-release/issues/1203
2019-09-05 14:59:08 +02:00
Isidor Nikolic
97a05cec1b Merge pull request #80122 from dgozman/fix-79583
Make DebugSession.name writable; fixes #79583
2019-09-05 11:30:30 +02:00
Dmitry Gozman
cb6b17d6f3 Make DebugSession.name writable; fixes #79583 2019-09-04 15:06:26 -07:00
Johannes Rieken
07d19b90a5 remove automatic merging/overwriting of decorations, simplify proposed API, #54938 2019-09-04 11:16:11 +02:00
Benjamin Pasero
fa7eba4888 extensions - fully provide keytar API 2019-08-28 15:09:02 +02:00
Matt Bierner
78879b6a81 Log missing csp on extension host instead of main window 2019-08-26 15:42:16 -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
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
43aa378a3c better extension host logging 2019-08-21 17:43:49 +02:00
Johannes Rieken
f35f14ffa0 Merge branch 'master' into joh/completionsDeprecated 2019-08-21 10:13:39 +02:00
Matt Bierner
b1dd95c883 Fire a single batched event internally to update all webview view states
Previously we fired one event per webview. This change switches to fire on event per update
2019-08-20 16:20:42 -07:00
Johannes Rieken
78d462bd86 sync diagnostics, fixes #47292 2019-08-19 18:28:09 +02:00
isidor
a7cc79a554 debug: introduce data breakpoints 2019-08-16 17:16:46 +02:00
Johannes Rieken
21de711cdf remove proposed API vscode.commands.onDidExecuteCommand 2019-08-15 15:24:40 +02:00
Alex Ross
cdea3dcf3b Multi-select in custom tree view (#78625)
Part of #76941

The first argument is now the element that the command is executed on. The second argurment is an array of the other selected items
2019-08-15 11:15:31 +02:00
Johannes Rieken
192e15b613 remove support for markdown message in tree view, only support plain string 2019-08-12 16:54:15 +02:00
Daniel Imms
37e0b8e229 Add terminal.integrated.automationShell
Fixes #78497
2019-08-09 09:40:38 -07:00
Johannes Rieken
6e9e6e912a extHostDownload isn't main thread addressable 2019-08-08 10:54:14 +02:00
Daniel Imms
81adc15a12 Merge remote-tracking branch 'origin/master' into tyriar/69865_remove_renderers 2019-08-06 10:02:39 -07:00
Daniel Imms
dc6b475be7 Add global event window.onDidWriteTerminalData
Fixes #78502
2019-08-06 09:58:26 -07:00
Daniel Imms
fcb78f5919 Merge branch 'master' into tyriar/69865_remove_renderers 2019-08-06 09:33:05 -07:00
Andre Weinand
6127460acc propagate CancellationToken to debug API; see #77293 2019-08-06 16:10:46 +02:00
Daniel Imms
25fe980387 Remove terminal renderers
Part of #69865
2019-08-05 14:31:15 -07:00
Rachel Macfarlane
8efcc47e18 strictPropertyInitialization, #78168 2019-08-05 09:05:30 -07:00
Johannes Rieken
32da48e7a0 consistent dto namings 2019-08-05 16:50:13 +02:00
Rob Lourens
566d77238e Merge pull request #77824 from microsoft/roblou/remoteEnvReconnection
Fix remote EH environment after reconnection
2019-07-31 14:30:26 -07:00
Kamran Ayub
5e604319e1 Merge latest master 2019-07-29 08:33:53 -05:00
Kamran Ayub
dbbf3316d3 Add deprecated support to SuggestDataDto 2019-07-26 15:22:35 +02:00
Daniel Imms
9b60caf9e0 Improve naming of start/spawn request calls 2019-07-25 16:09:03 -07:00
Daniel Imms
3866deba35 Use pty naming instead of virtual process
Part of #77160
2019-07-25 16:00:41 -07:00
Andre Weinand
9d8d084129 properly use default terminal for debug; fixes #77110 2019-07-25 19:06:02 +02:00
Daniel Imms
0927be89c8 Tweak names, make shellLaunchConfig readonly again 2019-07-24 14:29:24 -07:00
Logan Ramos
4008ea909e Merge remote-tracking branch 'microsoft/master' into shell-path-error-remote 2019-07-24 11:22:02 -07:00
Johannes Rieken
6a25cfa60c Merge pull request #72345 from hedgerh/command-execute-events
onDidExecuteCommand API
2019-07-24 14:45:33 +02:00
Rob Lourens
65fdc745ae Use null across EH boundary instead of undefined 2019-07-23 15:39:03 -07:00
Rob Lourens
c23b8fd5e1 Fix remote EH environment after reconnection
For microsoft/vscode-remote-release#16
2019-07-23 08:37:13 -07:00
Sandeep Somavarapu
53fe1660c9 Move download command to extension host 2019-07-20 05:17:46 +02:00
Rob Lourens
7ee0e1818a Give remote resolvers a way to set environment variables in the remote EH
Fix #77234, for microsoft/vscode-remote-release#16
2019-07-19 14:56:37 -07:00
Logan Ramos
d826dfd943 Allow remote error messages to work 2019-07-19 11:19:00 -07:00
Peng Lyu
f1bad37012 Remove Comment Id 2019-07-18 15:34:05 -07:00
Daniel Imms
c9cfc7c5ed Merge remote-tracking branch 'origin/master' into tyriar/77228_dimensionss 2019-07-12 10:42:34 -07:00
Sandeep Somavarapu
b3422b98b7 Merge pull request #76377 from microsoft/sandy081/fix74859
trigger workspace contains activation event on new folders
2019-07-12 16:42:56 +02:00
Daniel Imms
3092a1023c Remember dimensions from other terminals
Part of #77228
2019-07-11 21:18:06 -07:00
Rachel Macfarlane
877235c625 Remove old proposed commenting API 2019-07-10 11:11:14 -07:00
Matt Bierner
c01a3a718d Use clearer name for csp webview element
#76489
2019-07-09 11:45:20 -07:00
Johannes Rieken
65270230af tweak options for delete and write, #48034 2019-07-09 16:23:48 +02:00