Skip to content

Webview - retainContextWhenHidden #1464

Answered by tortmayr
jmenzies12 asked this question in General
Discussion options

You must be logged in to vote

Hi @jmenzies12,

disabling this option means that the diagram editor webview is always disposed when hidden e.g. by switching to another tab.
When the diagram editor tab then is focused again the webview has to be recreated from scratch.
Without any additional improvements for GLSP this would mean that we have to re-initiate the communication to the server and create a new diagram session. This has some severe downsides:

  • Loading overhead & potential flickering whenever the tab is made visible again
  • The current session on the server side including any pending changes is lost
  • The server can no longer communicate with the webview when hidden

Some additional work would be required to make th…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by jmenzies12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants