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

[vscode] Support evolution on proposed API extensionAny #14199

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rschnekenbu
Copy link
Contributor

What it does

Proposed API extensionsAny will now have a new signature for getExtension:
https://github.com/microsoft/vscode/blob/38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40/src/vscode-dts/vscode.proposed.extensionsAny.d.ts#L31

This Pull Request adds this to the similar interface in Theia file, and also update getExtension from plugin-context to align with this new signature.
Since #12277, the includeDifferentExtensionHosts parameter is ignored, as there is only one host in Theia. So there should be no other change to support this evolution.

fixes #14115

contributed on behalf of STMicroelectronics

How to test

Use the builtins and assume they still work with this evolution. The html-language-feature is the only builtin relying on the extensionsAny proposed API.

Follow-ups

None

Review checklist

Reminder for reviewers

fixes eclipse-theia#14115

contributed on behalf of STMicroelectronics

Signed-off-by: Remi Schnekenburger <[email protected]>
@@ -41,9 +41,13 @@ export module '@theia/plugin' {
* @param extensionId An extension identifier.
* @param includeDifferentExtensionHosts Include extensions from different extension host
* @return An extension or `undefined`.
*
* *Note* In Theia, includeDifferentExtensionHosts will always be set to false, as we only support one host currently.
Copy link
Contributor

Choose a reason for hiding this comment

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

That is actually not true: we support at least two different extension hosts: front-end and back-end. Back in the Che days, there was even support for remote-calling the extension interface via RPC.

@tsmaeder
Copy link
Contributor

@sdirix since you're Mr. "browser-only-Theia", would it make sense to do a follow-up to this PR that actually implements the functionality for multiple extensions hosts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs merge
Development

Successfully merging this pull request may close these issues.

[vscode] Evolution of the extensionsAny.d.ts interface
2 participants