Commit Graph

762 Commits

Author SHA1 Message Date
Johannes
2f908943a1 have an explicit SnippetTextEdit and all to set them onto a workspace edit
https://github.com/microsoft/vscode/issues/145374
2022-09-06 11:16:08 +02:00
Johannes Rieken
30eaec0f23 remove getExtension workaround (#159758)
fixes https://github.com/microsoft/vscode/issues/153320
2022-09-01 15:35:29 +02:00
Connor Peet
c11dabf9ce testing: improve decoration syncing (#159705)
So, two problems. One, we didn't actually fully re-sync testing
decorations when explicitly updated by the extension, since we attempted
to get the test URI from the _diff_ which would never actually be
present on single updates (since the test item URI cannot be changed).
I think this was the main problem people saw.

So, this fixes that. It also applies a change so that we only sync the
ranges to what the extension gives us if the document version is up to
date with what was in the extension host. This should avoid syncing
decorations to the wrong place--instead just use VS Code's own decoration
location tracking until we get a newer update from the extension.

Fixes #158475
Fixes #153304
2022-08-31 12:57:49 -07:00
Joyce Er
fa4ff1519d Implement and adopt edit session identifier API proposal (#157733)
* Add canonical workspace identifier proposed API

* Use canonical id to store and resume edit sessions

* Add git extension workspace identity provider

* Fix warning incorrectly showing up

* Make auto resume behavior opt in

* * Create a separate service
* Accept WorkspaceFolder instead of URI
* Return string instead of object

* Make edit session restores resilient to provider registration races

* Introduce an activation event
* Activate contributing extension before using provider

* `CanonicalWorkspaceIdentity` -> `EditSessionIdentity`

* Show progress while resuming edit session

* Store edit session even if extension will take care of opening target workspace

* Address most of PR feedback

* `IEditSessionsWorkbenchService` -> `IEditSessionsStorageService`

* Unregister provider in renderer

* Split out proposal into new `editSessionIdentityProvider.d.ts`

* Fix bad merge

* Always show progress in window

* Convert URI schemes
2022-08-19 08:01:43 -07:00
Johannes Rieken
aa0e7b731a Merge pull request #157559 from ChaseKnowlden/cheerful-pigeon
Fix a typo in secret state
2022-08-15 16:57:00 +02:00
Logan Ramos
dbbf24add8 Initial first run of telemetry output API (#157807)
* Initial first run of telemetry output API

* Add proposed api check
2022-08-10 13:26:12 -04:00
ChaseKnowlden
6e725c4c51 Fix typo in file 2022-08-08 15:45:18 -04:00
Matt Bierner
f9b9ffe1ef Fix deprecation message (#156008) 2022-07-22 15:43:27 -07:00
Johannes
40df705e1b add API proposal for vscode.TabInputTextMerge 2022-07-14 09:33:13 +02:00
Matt Bierner
50056f3e78 Finalize drop into editor api (#155102)
Fixes #142990
Fixes #149779
2022-07-13 12:54:52 -07:00
Peng Lyu
f86174be34 Export Interactive Window tab input (#154864)
* Export Interactive Window tab input.

* Update inputBoxUri.

* remove inputBoxUri from API
2022-07-12 14:01:47 -04:00
Matt Bierner
c9bf4393d5 Rename drop API interface (#154876)
Makes the names more consistent
2022-07-12 11:33:13 +02:00
jeanp413
bf18550673 Merge remote-tracking branch 'upstream/main' into proposal-130231 2022-07-07 16:01:11 -05:00
Anthony Stewart
32037c7e96 Add a flag to honour the config when calling applyEdit form an extension 2022-07-04 12:57:59 +02:00
Peng Lyu
0122f8bd4a Re #153850. Add logs for iw creation. (#153862) 2022-06-30 15:47:36 -07:00
Johannes Rieken
9b1c6cb3ff joh/issue152834 (#153298)
* update sample

* dynamically alias `ms-vscode.references-view` onto `vscode.references-view`
2022-06-27 15:26:49 +02:00
jeanp413
4e102e65da More granular TerminalExitReason 2022-06-25 14:28:24 -05:00
jeanp413
757c5f54c9 Proposal TerminalExitStatus 2022-06-25 14:27:37 -05:00
Matt Bierner
98ad4c15b5 Switch to std library Object functions (#152128)
- `fromMap` -> `Object.fromEntries`

- `values` -> `Object.values`
2022-06-15 16:34:32 +00:00
Matt Bierner
354e1a0595 Finalize data file reading API (#152127)
Fixes #147481
Also reverts #150963 since the `kind` field is not being finalized
2022-06-15 07:56:02 -07:00
Johannes Rieken
3d471d2ca9 Merge pull request #151841 from microsoft/joh/cute-bobcat 2022-06-15 08:46:12 +02:00
Matt Bierner
8b0b3ee72e Remove notebook editor decoration type (#151574)
* Remove the notebookEditorDecorationType API proposal

Fixes #146838

* Remove all the infastructure around the now removed notebookEditorDecorationType api
2022-06-13 13:51:10 -07:00
Matt Bierner
7284c3e4c1 Use classes for drop/paste edit types (#151980) 2022-06-13 13:10:07 -07:00
Johannes
0376810398 add API proposal for TextEdit#newText: SnippetString 2022-06-13 11:33:42 +02:00
Matt Bierner
d7c90c2b2b Update text editor drop proposal (#151552)
This updates the text editor drop proposal (#142990). This change introduces `DocumentDropEdit` which removes the need for `SnippetTextEdit`. This interface may also be extended in the future with additional metadata
2022-06-08 17:44:28 -04:00
Matt Bierner
370dfd5fee Iterate on paste edit provider api (#151477)
* Iterate on paste edit provider api

For #30066

- Pass all selections to paste providers. For #151326
- Introduce `DocumentPasteEdit` as return type. This new type uses an `insertText` that is applied to every paste location (for multicursor), plus an optional additional edit
-  Add `DocumentPasteProviderMetadata`. This lets extensions tell us which types of mimetypes they are interested in, letting us avoid round trips if no extensions care about the pasted data

* Correctly batch insertText
2022-06-08 15:06:55 -04:00
Matt Bierner
75a6ddc862 Add DataTransferItem.kind (#151384)
Fixes #150963

The new `.kind` property makes it easier to tell the type of a data transfer item
2022-06-07 08:06:00 -07:00
Matt Bierner
fd19b8567e Mark notebookContentProvider proposal as deprecated (#150493)
For https://github.com/microsoft/vscode/issues/147248

Marks the top level types in this file as deprecated. Also hooks up `registerNotebookContentProvider` to report deprecated API usage
2022-05-26 22:40:06 +00:00
Matt Bierner
e4f7f6a9da Add PasteEditProvider (#107283)
For #30066

This adds a new `documentPaste` api proposal that lets extensions hook into copy and paste.

This can be used to do things such as:

- Create link when pasting an image
- Bring along imports when copy and pasting code
2022-05-25 12:27:58 +02:00
Henning Dieterichs
9ef07308ea Finalizes inline completions 2022-05-24 12:52:19 +02:00
Peng Lyu
27ea5e48ae Merge pull request #150146 from microsoft/rebornix/source-commands
Notebook kernel source menu contribution
2022-05-23 18:11:33 -07:00
Matt Bierner
45304da73d Finalize NotebookEditor api proposal (#149767)
* Finalize NotebookEditor api proposal

Fixes #149271

This finalizes most parts of the NotebookEditor api proposal. I haven't removed the proposal entirely as there are still a few parts being left behind:

- The deprecated properties/functions
- A few contribution points such as `notebook/cell/executePrimary`

* remove extra quote
2022-05-23 23:27:17 +00:00
rebornix
8d503ffaf4 connection state in another pr 2022-05-20 16:35:46 -07:00
rebornix
9d49470ac6 Merge remote-tracking branch 'origin/main' into rebornix/controller-connection 2022-05-20 15:49:23 -07:00
Matt Bierner
1c7ab35761 Rename to DocumentOnDropEditProvider (#149730)
This change renames `DocumentOnDropProvider` to `DocumentOnDropEditProvider`. This new name aligns with the existing `DocumentFormattingEditProvider`
2022-05-17 09:26:54 -07:00
Matt Bierner
3f531a7de3 Add notebookWorkspaceEdit api proposal (#149128)
* Add notebookWorkspaceEdit api proposal

Splits a new `notebookWorkspaceEdit` out of the existing `notebookEditorEdit` proposal.

The notebookWorkspaceEdit reflects the api that we believe should be finalized instead of `notebookEditorEdit`. It lets extensions use workspaceedits to change cells in a notebook or replace the metadata for a notebook document

As part of this change, I've also marked all of the `notebookEditorEdit` apis as deprecated (except for `replaceNotebookMetadata` which exists in the new proposal too)

* Export type from extHost
2022-05-16 11:25:14 -07:00
rebornix
bd99c998a1 Remove proxy controller. 2022-05-15 18:56:22 -07:00
Johannes
aa706918c1 only match against notebook uri when document selector specificies notebook type, fixes https://github.com/microsoft/vscode/issues/149363 2022-05-13 09:29:57 +02:00
Matt Bierner
67014adc30 Remove the textDocumentNotebook API proposal (#149277)
* Remove the textDocumentNotebook API proposal

All consumers have now been migrated off of this proposal, so it is safe to remove from our code

* Remove deprecated api usage from test
2022-05-12 08:59:11 +02:00
rebornix
7e34708dcc prepare for removing proxy kernel. 2022-05-11 11:46:20 -07:00
Tyler James Leonhardt
2d9244c330 Finalize InputBoxMessageSeverity API (#148961) 2022-05-06 14:37:40 -07:00
Henning Dieterichs
bae40168ae Fixes issues from code review 2022-05-05 09:54:41 +02:00
Henning Dieterichs
3b08d52d0b Updates inlineCompletions proposal from inlineCompletionsNew proposal.
Also moves InlineCompletionList.commands to inlineCompletionsAdditions proposal.
2022-05-05 07:49:38 +02:00
Johannes
e7bc9bb5fc don't return duplicates from vscode.extensions.allAcrossExtensionHosts, add ExtensionIdentifierSet fyi @alexdima 2022-04-22 12:43:25 +02:00
Logan Ramos
aa69f3d762 Fix #15178 Finalize tabs API 🎉 2022-04-21 11:08:12 -04:00
Johannes
ad4470522e propose extensions.allAcrossExtensionHosts and related APIs, https://github.com/microsoft/vscode/issues/145307 2022-04-21 14:45:46 +02:00
Johannes
9530dca29d finalize notebookDocumentEvents-API, https://github.com/microsoft/vscode/issues/144662 2022-04-20 13:58:37 +02:00
Matt Bierner
50ea16198d Remove the concat text document api proposal
Fixes #146781
2022-04-14 14:39:44 -07:00
rebornix
f20a0f2a10 extract exthost/mainthread proxy kernels. 2022-04-14 11:10:48 -07:00
rebornix
ec30263535 Merge remote-tracking branch 'origin/main' into rebornix/lazy-kernel 2022-04-14 10:09:45 -07:00