Skip to content

To disable/hide tool palette in GLSP's vscode extension. #504

Answered by tortmayr
sathya-1994 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sathya-1994,
the default exports of the @eclipse-glsp/client package are incomplete and inconsistent at the moment. I opened #505 to track this.
Nevertheless, you have two options to hide/remove the tool palette from your diagram editor.

  1. Don't send the action to activate the tool palette.
    For this you simply have to overwrite the GLSPVscodeDiagramWidget.initializeSprotty() method and remove the dispatching of the EnableToolPaletteAction (https://github.com/eclipse-glsp/glsp-vscode-integration/blob/f8202b835799ee8905b526ff7b9a28ea849ed6f1/packages/vscode-integration-webview/src/glsp-vscode-diagram-widget.ts#L34)
    Note this just hides the tool palette, but does not completely remove the…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sathya-1994
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants