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

Fix some API inconsistencies related to web views #64

Closed

Conversation

tsmaeder
Copy link
Collaborator

Fixes eclipse-theia#12087

Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder [email protected]

What it does

Fixes a typing difference in createWebViewPanel as well as support for filtering command links via an array of command id's passed to enableCommandUris.

How to test

The attached extension opens three web views at startup: one where the openFolder link works, but openFile is disabled, one where command links are generally enabled and one where they are generally turned off.

Review checklist

Reminder for reviewers

@tsmaeder
Copy link
Collaborator Author

Here's the extension:

commanduritest-0.0.1.zip

And here's the source:

commanduritest.zip

Copy link

@lucas-koehler lucas-koehler left a comment

Choose a reason for hiding this comment

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

Code changes look good to me and I could verify the behavior with the provided test extension.
For the upstream PR, please don't forget to add a changelog entry including the attribution suffix - Contributed on behalf of STMicroelectronics (you can see an example in the CHANGELOG.md)

Fixes eclipse-theia#12087

Contributed on behalf of STMicroelectronics

Signed-off-by: Thomas Mäder <[email protected]>
@tsmaeder
Copy link
Collaborator Author

Closing in favor of eclipse-theia#12091

@tsmaeder tsmaeder closed this Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix some inconsistencies in webview VS Code API
2 participants