Commit Graph

840 Commits

Author SHA1 Message Date
Sandeep Somavarapu
b38186b046 Fix #126953 2021-07-06 11:57:34 +02:00
rebornix
bfac07cd0e de-ref interactive input on interactive nb close. 2021-06-27 13:54:17 -07:00
rebornix
b17fa9dcf5 add notebook to the text document of the input box in iw. 2021-06-25 15:18:04 -07:00
Daniel Imms
855d764df5 Implement contributed profiles in terminal editors
Fixes #127158
2021-06-25 13:19:20 -07:00
Connor Peet
45eea1f87b testing: initial api side of test coverage
For https://github.com/microsoft/vscode/issues/123713
2021-06-25 12:58:04 -07:00
Johannes Rieken
24f9000e97 merge CompletionItemLabel into CompletionItem#label, https://github.com/microsoft/vscode/issues/39441 2021-06-22 14:35:31 +02:00
Connor Peet
186e565ec0 refactor: update to new testing API
Previously in the testing API, you called `registerTestProvider` with
your own instance of a TestController, and VS Code would request
workspace or document tests. This has been changed: now, you call
`createTestController`, which returns an object, and call
`createTestItem` to insert test nodes under the `controller.root`.

Extensions should generally decide themselves when to publish tests. For
example, when a file is opened in an editor, test extensions will want
to make sure tests for that file are available so that inline
decorations can be shown. This is pretty similar to what the editor
API does in diagnostics.

There is still a `resolveChildrenHandler` on the controller (rather than
the TestItem directly), which you should _set_ if the test extension
supports lazy discovery. Additionally, if you support running tests,
you'll also want a `runHandler` (migrating from the old `runTests` method).

Some of the existing test providers have been updated, you can check
them out here:

- https://github.com/microsoft/vscode-extension-samples/tree/main/test-provider-sample
- https://github.com/microsoft/vscode-selfhost-test-provider

In summary, to update to the new API:

- Call `vscode.test.createTestController` instead of `registerTestController`
- Move the contents of your `runTests` method to `controller.runHandler`
- Move your `TestItem.resolveHandler` to `controller.resolveChildrenHandler`,
  which may involve adding some `instanceof` checks.
- If you lazily discovered tests in `createDocumentTestRoot`, you'll want
  to trigger that logic based on `vscode.workspace.onDidOpenTextDocument`.
- If your test runner can deal with showing locations of unsaved changes,
  listen for `vscode.workspace.onDidChangeTextDocument` to trigger those
  changes in the tree.
2021-06-21 12:14:24 -07:00
Matt Bierner
cd08aa0081 Initial work adding NotebookCellData.mime
For #126280
For #126417
2021-06-15 15:16:58 -07:00
Martin Aeschlimann
6c4230e86c MarkdownString for StatusBarItem.tooltip. For #126258 2021-06-15 15:35:01 +02:00
Johannes Rieken
505dfc7a06 support detail for modal messages, https://github.com/microsoft/vscode/issues/125750 2021-06-15 11:40:55 +02:00
Connor Peet
ec65867a75 testing: improve cancellation, and allow test runs to be individually cancelled
Fixes #125712
2021-06-14 16:46:03 -07:00
Daniel Imms
ae1f358300 Merge pull request #125849 from microsoft/tyriar/120369
Finalize terminal profile contributions
2021-06-11 07:00:57 -07:00
Daniel Imms
465759bc58 Prevent other extensions registering terminal profiles 2021-06-11 06:45:36 -07:00
Johannes Rieken
d0cc52143b change IOutputItemDto to use real bytes, add many dedicated dto-types for transporting output (which cannot be bytes), remove metadata2 from renderer 2021-06-10 11:18:46 +02:00
Johannes Rieken
bb86598b97 use notebookCommon import to see where notebook "leaks" into IPC/protocol 2021-06-09 12:27:38 +02:00
Johannes Rieken
5cd7916219 towards https://github.com/microsoft/vscode/issues/125668 2021-06-09 11:36:49 +02:00
Johannes Rieken
a31c6c3550 extract ExtHostNotebookDocumentsShape into its own thing 2021-06-07 17:41:12 +02:00
Johannes Rieken
76fe0c90b0 make NotebookEditor#selections writeable, https://github.com/microsoft/vscode/issues/125275 2021-06-07 17:07:46 +02:00
Johannes Rieken
cec19dcfdc remove unused types 2021-06-07 16:50:56 +02:00
Johannes Rieken
10442e00b4 extract ExtHostNotebookEditorShape into its own thing 2021-06-07 16:25:03 +02:00
Johannes Rieken
2031df2653 rename hasExecutionOrder to supportsExecutionOrder 2021-05-31 16:09:05 +02:00
Johannes Rieken
f2fb2b8cbe rename viewType to notebookType, https://github.com/microsoft/vscode/issues/122922 2021-05-31 15:55:15 +02:00
Megan Rogge
29cad8fb5e Merge pull request #124754 from microsoft/tyriar/profile_api
Terminal profile contributions
2021-05-27 19:01:23 -05:00
Alex Dima
f523f65f39 Add a description field to decorations to be able to find leaks 2021-05-27 15:50:04 +02:00
Daniel Imms
5eddbd9d20 Properly support splitting ext profiles 2021-05-26 11:48:32 -07:00
Daniel Imms
bf5f7dd5ec Get split terminals working 2021-05-26 11:34:11 -07:00
Henning Dieterichs
d1ed9c8bf3 Adds proposed API for window.getInlineCompletionItemController(...).onDidShowCompletionItem. 2021-05-26 20:34:04 +02:00
Daniel Imms
3ff91e7621 Merge remote-tracking branch 'origin/main' into tyriar/profile_api 2021-05-26 11:09:35 -07:00
Daniel Imms
e29194ad0d Activation event, register api 2021-05-26 07:41:16 -07:00
Matt Bierner
24a23a8ea0 Mark array params in vscode.d.ts readonly (#124599)
I recently ran into an issue where I was trying to call showQuickPick with a readonly array. This is currently not allowed, even though `showQuickPick` never mutates the input

This change marks a few places in `vscode.d.ts` where we take arrays as parameters as `readonly []`. It also caught a potential bug with`getSession` modifying the input array
2021-05-25 18:18:47 -07:00
Daniel Imms
43b7187c3d Force inheritEnv in ext debug terminals
Fixes #124041
2021-05-25 04:55:02 -07:00
Alex Dima
91fdd52d17 Merge remote-tracking branch 'origin/main' into alex/ghost-text 2021-05-21 19:57:53 +02:00
Alex Dima
85f518b255 Add RemoteAuthorityResolver.getCanonicalURI 2021-05-21 16:48:14 +02:00
Henning Dieterichs
9086ecd9f0 Renames Suggestion to Completion and cleans up API 2021-05-21 11:29:08 +02:00
rebornix
894b7782cc Merge branch 'notebook/dev' into main 2021-05-20 14:17:28 -07:00
Megan Rogge
6f2381e33d Terminal tab icon API (#124004) 2021-05-20 18:17:33 +00:00
Connor Peet
59abb887f6 notebook: address messaging api changes 2021-05-20 10:54:52 -07:00
rebornix
f583b4b336 Merge branch 'main' into notebook/dev 2021-05-19 19:02:13 -07:00
Matt Bierner
1ddc623e58 Simplify logic for webview resource uris (#123740)
* Simplify logic for webview resource uris

This change attempts to simplify the logic around webview resource uris by doing the following:

- Hard code the resource origin. We always will be hitting a service worker for these paths so they don't need to be dynamic (although in the future we may want to pull them from `product.json`)

    This lets us remove these properties from the environment service

- Move remote handling from the resource loader in `asWebviewUri`.

- Remove the handling of http and https paths from the resource loader.

    I don't think these cases can be hit any longer (although I need to confirm this with more testing for the web case). Instead I added a check to `asWebviewUri` so that we return the original uri if a http(s) uri is passed in

* Restore normalizeResourcePath

We still need to convert between a remote uri and one that our remote file system can read

* Fix test

* Restore passing in remote on extension side

* Remove only
2021-05-19 17:26:51 -07:00
Connor Peet
46a1ca7824 notebook: initial renderer communication 2021-05-19 17:08:13 -07:00
Johannes Rieken
9716c27e06 slightly better uri for untitled notebooks, https://github.com/microsoft/vscode/issues/121974 2021-05-19 18:44:01 +02:00
Henning Dieterichs
09ab8ad202 wip 2021-05-19 17:05:31 +02:00
Johannes Rieken
53352a2954 add API to open an untitled notebook, https://github.com/microsoft/vscode/issues/121974 2021-05-19 15:27:23 +02:00
Connor Peet
e657d42281 debug: expose parent session on DebugSessions
For https://github.com/microsoft/vscode/issues/123403
2021-05-18 11:56:09 -07:00
Alex Dima
32db232a53 Scaffold ghost text 2021-05-17 15:39:26 +02:00
Barbara Valdez
1a78b7359e Add drag and drop controller (#123542) 2021-05-14 02:09:04 -07:00
Daniel Imms
5d95c01ec1 Remove getDefaultShellAndArgs from tasks
Fixes #123732
2021-05-13 06:36:08 -07:00
Daniel Imms
6d70e727d0 Set default profile in exthost from renderer
Fixes #121760
Related microsoft/vscode-python#16175
2021-05-12 17:14:18 -07:00
Daniel Imms
84abba8754 Clean up 2021-05-12 05:37:21 -07:00
Alex Ross
f41b6e6d81 Add active editor to editor tabs and use in variable resolver (#123450) 2021-05-11 01:47:28 -07:00