Commit Graph

685 Commits

Author SHA1 Message Date
Matt Bierner
6c3f161641 Remove liveshare specific registerContentProvider api (#164497)
Liveshare has migrated off of the content provider api
2022-10-24 22:39:28 +02:00
Johannes
62e2760ff5 Have the ability to add modelVersionId to IMarkerData and IMarker 2022-10-19 16:08:38 +02:00
Logan Ramos
75cdec29a4 Fix wrong proposed api check (#163964) 2022-10-18 21:16:46 +02:00
Joyce Er
f9a0fdeff2 Tolerate minor edit session identity differences (#163804)
Also add basic support for partial edit session identity matches
2022-10-16 23:51:51 -07:00
Johannes Rieken
0dd2dc89d2 hook up unhandled extension errors with extension telemetry (#163424)
* hook up unhandled extension errors with extension telemetry

* fix layering

* forward unhandled language provider errors to extension telemetry loggers
2022-10-13 09:04:08 -04:00
Sandeep Somavarapu
894aa9a7a7 Log improvements (#163532)
* - expose log level in the proposed api
- ability to set log level per logger

* fix tests
2022-10-13 03:48:52 -07:00
Logan Ramos
e814cb5c65 Telemetry API (#160902)
* First run of scaffolding out a telemetry API

* Make telemetry config up to date

* Further work on telemetry API

* Implement telemetry logging extension host

* Add logging to exthost logger

* Extract telemetry cleaning

* Add data cleaning

* Update email regex
2022-10-11 15:44:18 -04:00
Tyler James Leonhardt
53785ee45d Finalize localization API (#163344) 2022-10-11 12:39:39 -07:00
Alex Ross
23e6c032af Start enforcing the tunnels API (#163187)
* Start enforcing the tunnels API

* Fix API test
2022-10-10 10:10:24 -07:00
Tyler James Leonhardt
0f8068478e Support format2 (#162785) 2022-10-06 15:02:33 +02:00
Tyler James Leonhardt
6a6227bc3e Use any for the args since we will stringify whatever is passed in (#161421)
* Use any for the args since we will stringify whatever is passed in

* args should also be optional
2022-09-21 11:24:45 -07:00
Ian Huff
287229489b notebookControllerAffinityHidden proposal to allow for hiding of notebook controllers per document (#161145)
* notebookControllerAffinityHidden proposal to allow for hiding of controllers from the picker per document

* change Extended to 2

* add a proposed API guard check for usage of new Hidden enum value

Co-authored-by: Ian Huff <ianhuff@Ians-MacBook-Pro.local>
2022-09-20 08:15:13 -07:00
Sandeep Somavarapu
35c7ee9d02 Support log output channels for extensions (#161249)
* introduce log api in extension context

* separate registering output vs log channel

* Separate extension log channels in show logs command

* add logging error to embedder logger

* show extension log in the extension editor

* configure log level per extension

* change the order of log entries

* introduce logger

* align with output chanel

* revert changes

* fixes
2022-09-19 09:03:41 -07:00
Johannes Rieken
77309b33d4 add WorkspaceEditMetadata and use it for applyEdit, (#160996)
* add `WorkspaceEditMetadata` and use it for `applyEdit`,

https://github.com/microsoft/vscode/issues/112109

* fix compilo in tests

* workspace edits from updating paths are marked as refactoring fyi @mjbvz
2022-09-16 09:44:19 +02:00
Tyler James Leonhardt
ccddb94f98 initial cut of vscode.l10n (#158328) 2022-09-14 16:48:25 -07:00
Daniel Imms
a4cce8f575 Merge pull request #160900 from babakks/add-change-shell-event
Add `onDidChangeShell` event to the API
2022-09-14 07:53:50 -07:00
Babak K. Shandiz
9b11b34bf1 🕵 Check extension has enabled envShellEvent proposed API
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2022-09-14 18:46:56 +04:30
Babak K. Shandiz
d336c5cd1e 🎁 Add onDidChangeShell event to ext host
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2022-09-14 13:33:58 +00:00
Matt Bierner
2514759850 Remove notebook content provider save and backup functionality (#160581)
For #147248

When stepping through the liveshare code, we figured out they do not appear to be using `save`, `saveAs`, or `backup` (they return empty results for these)

This PR removes this part of the proposal so we can track just the parts of the api that they are using
2022-09-12 14:08:25 -07:00
Johannes
4b1bfdeea6 rename proposal, enforce proposal, remove minResourcesToAutosave 2022-09-08 15:11:40 +02:00
Johannes
f3f9f7a10d Merge branch 'main' into pr/a-stewart/154079 2022-09-08 14:55:55 +02:00
Johannes Rieken
50cdf1d71b Merge pull request #160176 from microsoft/joh/nasty-rook
have an explicit `SnippetTextEdit` and all to set them onto a workspace edit
2022-09-07 00:02:46 +02:00
Benjamin Simmonds
f51258b93b Optional TreeItem Checkbox (#158250) 2022-09-06 12:41:57 +02:00
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