Content assist edit positions and template variables [message #1837227] |
Mon, 25 January 2021 14:00  |
Eclipse User |
|
|
|
Just wondering if I should expect these to work via LSP (e.g. in Theia) at all. In general, there doesn't seem to be any clear documentation that I've been able to find about what Xtext IDE features are supported via LSP, so it's difficult to tell what kind of feature parity to expect between the native Eclipse IDE plugin and an LSP IDE and where the gaps might be. There is not even an LSP section on the Xtext documentation website, while the Web Support section doesn't go into enough detail, and seemingly doesn't cover Monaco-based Theia, so it looks like it's wildly out of date. If I remember correctly, Web Support is basically abandoned in favour of LSP, so this makes sense, I just don't understand why there's no documentation for the LSP side of things.
|
|
|
|
|
|
Re: Content assist edit positions and template variables [message #1838244 is a reply to message #1838130] |
Fri, 19 February 2021 12:32   |
Eclipse User |
|
|
|
Thanks, that makes things clearer. I was actually trying to figure out if the AbstractIdeTemplateProposalProvider API with the variable and cursor methods works in LSP, but I see that the resulting edit positions are ignored in ContentAssistService. Is there a different API available, or do I need to hard-code the variables in my templates using the LSP snippet syntax?
|
|
|
|
Powered by
FUDForum. Page generated in 0.04233 seconds