Skip to content

Conversation

rschnekenbu
Copy link
Contributor

@rschnekenbu rschnekenbu commented Feb 18, 2025

What it does

The proposed API theia.proposed.documentPaste.d.ts is now public and must be moved to theia.d.ts. It was previously stub. This PR currently only makes the API public, but it is still stubbed. It will be implemented or pushed as current state dependening on time available to implement.

fixes #14938

How to test

Not much to test here, as the API was already implemented or stub previously.
The API was adopted without changes.
One note about API however: registerDocumentDropEditProvider has now an optional metadata parameter, that was already implemented (see

registerDocumentDropEditProvider(selector: theia.DocumentSelector, provider: theia.DocumentDropEditProvider, metadata?: theia.DocumentDropEditProviderMetadata) {
)

I provided a sample extension that register a DocumentPasteEditProvider. It should start without complaining, as the API is stubbed.

  1. Run theia sample electron or backend
  2. install extension:
  1. Checks no new errors are thrown on extension activation ("*" activation)
  2. Test to copy and paste elements between text editors. No errors shall be logged.

Follow-ups

Implement stubbed API: #15058

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Contributed on behalf of STMicroelectronics

Review checklist

Reminder for reviewers

@rschnekenbu rschnekenbu added the vscode issues related to VSCode compatibility label Feb 24, 2025
fixes #14938

Contributed on behalf of STMicroelectronics

Signed-off-by: Remi Schnekenburger <rschnekenburger@eclipsesource.com>
@rschnekenbu rschnekenbu marked this pull request as ready for review February 26, 2025 10:36
@tsmaeder tsmaeder merged commit 2bd9035 into master Feb 26, 2025
10 of 11 checks passed
@github-actions github-actions bot added this to the 1.59.0 milestone Feb 26, 2025
laemmleint pushed a commit to mvtecsoftware/theia that referenced this pull request Aug 18, 2025
)

fixes eclipse-theia#14938

Contributed on behalf of STMicroelectronics

Signed-off-by: Remi Schnekenburger <rschnekenburger@eclipsesource.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vscode issues related to VSCode compatibility
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[vscode] DocumentDropEditProvider becomes public
2 participants