Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stub for proposed API: DocumentPaste #12512

Conversation

marcdumais-work
Copy link
Contributor

What it does

DocumentPaste is a new proposed API. As of 1.72.2 it's only used in built-in extension
vscode.markdown-language-features.

This commit adds a stub implementation, sufficient to use vscode.markdown-language-features
1.72.2 and hopefully later versions, if we need it to. The eventual goal is to replace this
stub with the full implementation.

Fixes #12430

How to test

Run the example application and confirm that build-in MarkDown support activates and works as
expected (the DocumentPaste-related features will not work, obviously). Some pointers:

Build the example application. Unzip the markdown.zip file below to an empty "plugins" folder at the root of
the theia repo (or at least remove the older version of the markdown extensions, installed by yarn download:plugins).

markdown.zip

Do not run yarn download:plugins after adding the vscode git extensions v1.72.2,
since the command might install another version along, which might interfere with
the tests.

Review checklist

Reminder for reviewers

The immediate goal is for vscode built-in extension
`vscode.markdown-language-features` v1.72.2 to work again (minus
the "DocumentPaste" benefits.

Fixes eclipse-theia#12430

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>
@marcdumais-work marcdumais-work added vscode issues related to VSCode compatibility builtins Issues related to VS Code builtin extensions labels May 10, 2023
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

  • verified that the bug related to activation exists on master with the plugin
  • verified that the pr fixes the activation of the plugin
  • verified the content of the changes

@marcdumais-work marcdumais-work merged commit 4867d2a into eclipse-theia:master May 10, 2023
@marcdumais-work marcdumais-work deleted the new-proposed-apis-1.72.2-documentPaste branch May 10, 2023 14:58
@vince-fugnitto vince-fugnitto added this to the 1.38.0 milestone May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builtins Issues related to VS Code builtin extensions vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[builtins] [proposed API] [vscode.markdown-language-features]: Theia misses proposed API: Document Paste
2 participants