mdenet / educationplatform

Eclipse Public License 2.0
2 stars 3 forks source link

Public instance Xtext editor requires sendFullText #183

Open barnettwilliam opened 4 months ago

barnettwilliam commented 4 months ago

The current deployment of the public instance on the King's CREATE cloud requires sendFullText to be set to true so the ace editor is working in stateless mode. It appears to be the Xtext service session cookie is not being set/forwarded so the remote editor contents cannot be modified.

The Xtext editor is initialised here: https://github.com/mdenet/educationplatform/blob/cfe2cbf2cc543a3a55f13dde8a47dc87fe713b66/platform/src/XtextEditorPanel.js#L22

Adding this to to the init object species stateless mode

sendFullText: true

https://eclipse.dev/Xtext/documentation/330_web_support.html

Mentioned in PR https://github.com/mdenet/educationplatform/pull/180#discussion_r1498224946

In the long term we may want to consider moving to LSP based editors for more general support of other languages.