GLSP editor on reload #940
Replies: 1 comment 1 reply
-
Hi @LokanandaHJ, yes this is sort of inconsistent: the problem entries in the Theia problem view remain, while the markers in the diagram editors are not re-added after close and re-open. Some background: In most of the productive applications of GLSP, this mechanism is adapted to my knowledge to the specific needs of the application. Some application apply live validation, thus they request markers on start-up of the editor and send markers from the server after each change. This is the best approach, if validation is rather easy and not a very long running task. If live validation is implemented this way, the problem goes away, because on open, the editor requests markers anyway, so markers would again show up and whenever the client receives markers, the markers are updated in the Theia problems view. So I would suggest to open a bug and add the clean-up in the If we'd want to go one step further in terms of providing generic support for both scenarios in GLSP, we could distinguish API-wise between live validation and on-request validation and only clean-up markers in the @tortmayr @martin-fleck-at What do you think? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
the markers that are present on the node will be removed in the GLSP whenever we reload.
eventhough the problems are there in problem view.

node is missing property called cssClasses
before reload-

after reload-

what might be the reason
Beta Was this translation helpful? Give feedback.
All reactions