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

klighd-vscode: add dispatch-action command for other extensions #15

Merged
merged 3 commits into from
Sep 10, 2021

Conversation

christoph-fricke
Copy link
Contributor

This PR adds a new command to the klighd-vscode extension that allows other extensions to dispatch an Sprotty action in all open webviews that belong to the host extension.

Usage (documented in the README as well):

// - refId: your registration id returned from the setLanguageClient command
// - action: a valid Sprotty action that is send to open diagram views.
vscode.commands.executeCommand("klighd-vscode.dispatchAction", refId: string, action: Action);

Copy link
Member

@NiklasRentzCAU NiklasRentzCAU left a comment

Choose a reason for hiding this comment

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

LGTM

applications/klighd-vscode/README.md Outdated Show resolved Hide resolved
applications/klighd-vscode/README.md Outdated Show resolved Hide resolved
@christoph-fricke christoph-fricke merged commit 43a09d0 into main Sep 10, 2021
@christoph-fricke christoph-fricke deleted the cfr/vsc-dispatch branch September 10, 2021 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants