Commit Graph

443 Commits

Author SHA1 Message Date
Alex Ross
00ebd1d85f Ensure tasks are resolved when run from extension host
Related to #101884
2020-07-08 10:17:13 +02:00
Johannes Rieken
f08ce02836 debt - remove unused userHome from extHost env, also some todos 2020-07-07 16:01:50 +02:00
Alex Dima
d432126ecf Extract workspaceContains related logic to a separate file (#75284) 2020-07-06 23:15:52 +02:00
Rachel Macfarlane
ab7a5ec3ad Address part of feedback for #100993 2020-07-06 08:51:24 -07:00
isidor
a301dc553b change noCompress -> compress and make default to not compress sessions in call stack
#101429
2020-07-02 11:37:35 +02:00
João Moreno
4b9c19ab03 fixes #101277 2020-06-29 15:46:35 +02:00
isidor
8e40c436dd introduce noCompact flag to DebugSessionOptions
#100852
2020-06-25 10:03:16 +02:00
Alex Ross
39a406daa3 Add resolveTreeItem to custom tree
Part of #100741
2020-06-24 16:29:01 +02:00
Pascal Fong Kye
e3033faeee File operation events support multiple resources (#98988)
* refactor: use array of resources

* refactor: use an array of uricomponentspair

* feat: move many resources

* refactor: rename data to files

* feat: use array of files for copy

* refactor: use move with multiple resources

* refactor: use move method with array of files

* refactor: rename data to files

* feat: moveOrCopy array of resources on paste

* refactor: use concise loop syntax

* test: assert number of events

* refactor: rename uricomponentspair

* support multiple files on WorkingCopyFileEvent

* feat: support multiple resources
onWillRunWorkingCopyFIleOperation onDidRunWorkingCopyFileOperation

* refactor: make source optional for consistency

* refactor: support resources for delete

* test: isolate tests

* fix: iterate over resources

* feat: support operations on delete

* feat: adopt deleting multiple resources

* fix: typing and sequential flow of copyservice

* fix: typing and naming

* fix: typing and naming

* fix: use different message for multiple overwrites

* refactor: naming consistency

* fix: use array resources

* fix: message for multiple overwrites

* fix format

* clean up working copy file service

* refactor multiple overwrites message helper

* use openeditors to bulk open

* split drop copy and move

* add returns

Co-authored-by: Benjamin Pasero <benjpas@microsoft.com>
2020-06-24 10:32:55 +02:00
Johannes Rieken
3fd09e62b5 send requests per provider so that a hanging provider doesn't block other providers, https://github.com/microsoft/vscode/issues/100524 2020-06-23 11:23:11 +02:00
Connor Peet
a57cb45be8 notebooks: pipe renderer API postmessages to the renderer itself (#100414)
* notebooks: pipe renderer API postmessages to the renderer itself

Previously the postMessage on acquireNotebookRenderer API was just
a proxy to the global vscode postmessage. Now, it's linked to the
renderer and will cause an optional `onDidReceiveMessage` method on
the renderer to be called.

The message still _also_ goes to the global webview message handling
for advanced use cases, but this change allows the webview<->renderer
communication to be more nicely contained
and separate for most use cases.

* wip

* fixup! pr comments
2020-06-22 09:35:16 -07:00
Daniel Imms
395b228387 Merge remote-tracking branch 'origin/master' into tyriar/link_providers 2020-06-19 05:26:26 -07:00
Daniel Imms
a0558707ec Handle link on exthost 2020-06-18 05:15:04 -07:00
Alex Dima
39e3340d04 Push not-null assertion further down to usage 2020-06-18 13:18:47 +02:00
rebornix
6c68514534 Fix #100329. Content providers can contribute to undo/redo stack of a notebook document. 2020-06-17 17:08:09 -07:00
Daniel Imms
2dbf1703b8 Get link providers passing all the way through to the renderer 2020-06-17 12:10:03 -07:00
Alex Ross
1abf21d3d8 Explicitly set task execution way before running task
Part of #100361
2020-06-17 13:39:02 +02:00
rebornix
ca7f2683fd resolve notebook editor with comm object. 2020-06-16 17:21:11 -07:00
rebornix
8ad77ef2b6 mimetype and remove revert. 2020-06-16 14:55:20 -07:00
Daniel Imms
54b6e8fa41 Merge pull request #100011 from microsoft/tyriar/term_errors
Refactor terminal launch, improve error handling and add troubleshoot link to notification
2020-06-15 09:33:41 -07:00
Connor Peet
45dbf43a87 Merge branch 'connor4312/identify-cell-outputs' 2020-06-15 09:14:23 -07:00
Daniel Imms
5053f27c39 Merge branch 'master' into tyriar/term_errors 2020-06-14 06:56:51 -07:00
rebornix
98c3065160 Fix #96840. Support backup/revert from notebook content provider. 2020-06-12 18:00:15 -07:00
Daniel Imms
3581908cce Merge branch 'master' into tyriar/term_errors 2020-06-12 12:49:56 -07:00
Connor Peet
1d1b452f2f notebooks: add ID for rich outputs, expose to renderer and webview
Some API changes:

 - I changed the second param of NotebookOutputRenderer.render to a
   `NotebookRenderRequest` since we were up to four parameters already.
 - The request contains a unique `outputId`, which is generated when
   output is first created or restored (the ID is not stable if a
	 notebook is closed and reopened)
 - I changed the renderer events to `onDidCreateOutput` and
   `onWillDestroyOutput` since they're for outputs, not cells.
 - Additionally, they're called with objects that contain the output
   ID to render.
2020-06-12 12:29:30 -07:00
Daniel Imms
1dd4c04384 Fix launching in ext host/pty terminals 2020-06-12 11:05:45 -07:00
isidor
cc06e19b15 Introduce DebugSessionOptions.noDebug
#99743
2020-06-12 17:33:00 +02:00
Alex Dima
1927f9b6e0 Add getters for connection data & events for changes 2020-06-12 13:57:12 +02:00
Alex Dima
1f3ba68676 Move the remote connection data to the IRemoteAuthorityResolverService 2020-06-12 13:57:12 +02:00
Alex Dima
301597857d Add connectionData to IInitData.remote 2020-06-12 13:57:12 +02:00
Johannes Rieken
b0d056202b Use canonical uri for openTextDocument api, #93368 2020-05-29 18:16:31 +02:00
Johannes Rieken
5721d63eb6 notebooks - wire up onDidChange event from notebook providers, fyi @rebornix, https://github.com/microsoft/vscode/issues/96403 2020-05-29 13:20:28 +02:00
rebornix
914fa13e26 support renderer and content provider registered in different extension host. 2020-05-26 20:11:49 -07:00
Rachel Macfarlane
4f46398b7e Send auth provider API calls through renderer when on remote 2020-05-19 17:46:36 -07:00
rebornix
5c928428df notebookEditor.visible 2020-05-19 17:20:20 -07:00
Peng Lyu
536078737f Merge pull request #98126 from microsoft/rebornix/documentNEditors
Separate notebook document and editor events.
2020-05-19 15:09:52 -07:00
Johannes Rieken
7ab052aec4 first cut of token_at_position api, https://github.com/microsoft/vscode/issues/91555 2020-05-19 16:23:08 +02:00
rebornix
025bd27df7 webview comm based on editor other than document. 2020-05-18 18:13:45 -07:00
rebornix
55ac452768 webview id attached to notebook editor 2020-05-18 16:29:02 -07:00
rebornix
a14736ca5e introduce visible notebook editors 2020-05-18 15:45:32 -07:00
rebornix
9a384768c3 Fix #97694. 2020-05-18 10:35:43 -07:00
rebornix
2d6df55ad1 Notebook kernel preloads 2020-05-17 21:12:58 -07:00
Isidor Nikolic
33187ab34e Merge pull request #97825 from microsoft/isidorn/accessibilityInformation
vscode api: introduce accessibilityInformation
2020-05-15 16:41:34 +02:00
rebornix
b9c163faee asWebUri. 2020-05-14 17:53:33 -07:00
isidor
dc31d5b59e move accessibilityInformation to existing file and reanme to IAccessibilityInformation 2020-05-14 17:31:05 +02:00
isidor
6e50f24e64 vscode api: introduce accessibilityInformation 2020-05-14 17:25:46 +02:00
rebornix
e3c3ea27e0 Switch kernel info. 2020-05-13 18:26:41 -07:00
rebornix
03acd2250a Fix #96433 2020-05-13 12:47:39 -07:00
rebornix
a15661000f adopt notebook kernel 2020-05-13 11:31:06 -07:00
Rachel Macfarlane
d0a3feff23 Add account activity badge and sign in command for auth provider requests 2020-05-12 20:35:03 -07:00