Skip to content

Handling Duplicate Markers in GLSP and Langium Integration #1487

Answered by tortmayr
kapishsingla asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kapishsingla,
if you want to disable the GLSP marker registration you have to override the initializeContainer method in your diagram configuration. By default the implementation connects to the marker manager there (https://github.com/eclipse-glsp/glsp-theia-integration/blob/f1c67da319255e367ae92c22f65222149357b340/packages/theia-integration/src/browser/diagram/glsp-diagram-configuration.ts#L97)

Overriding the method and skipping the marker manager connection should do the trick:

   protected override  initializeContainer(container: Container): void {
        connectTheiaContextMenuService(container, this.contextMenuServiceFactory);
    }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kapishsingla
Comment options

Answer selected by kapishsingla
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