Skip to content

GLSP 2.0 - SModelElement Arguments? #1165

Answered by rsoika
rsoika asked this question in Q&A
Discussion options

You must be logged in to vote

...ok I try to answer it by myself: it looks like hasArguments is replaced by hasArgs.
So the code should now look like the following - right?

import {
    GModelElement,
    hasArgs
} from '@eclipse-glsp/client';
.....

       let element: GModelElement | undefined;
       ....
        if (element && hasArgs(element)) {
              element.args.....
        }

Replies: 1 comment 1 reply

Comment options

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

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