Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to disable the language servers automatic building/code generation?
How to disable the language servers automatic building/code generation? [message #1859991] Sat, 08 July 2023 18:46 Go to next message
Sascha aka. GlancingMind is currently offline Sascha aka. GlancingMindFriend
Messages: 5
Registered: April 2023
Junior Member
Hello,

I'd like to disable the automatic code generation for the language server, so that the language server is only used for validation and editing support.
How could this be done?

I already disabled the default registration of the IBuilderParticipant, by commenting out the responsible entry within the UI-Projects plugin.xml (as described here).
But it seems like, that this only applies to the eclipse-instance and not the language server (at least for me, the language server still spins up the generation).

Any help is very much appreciated.

[Updated on: Sat, 08 July 2023 18:48]

Report message to a moderator

Re: How to disable the language servers automatic building/code generation? [message #1859992 is a reply to message #1859991] Sat, 08 July 2023 19:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14736
Registered: July 2009
Senior Member
Simply don't implement the generator / implement the one you call via command in another class is not an option?
Overriding https://github.com/eclipse/xtext/blob/9a2f930627ef3b4c9107a03c260f2e67fc730f36/org.eclipse.xtext/src/org/eclipse/xtext/build/IncrementalBuilder.java#L361
Might also work


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: How to disable the language servers automatic building/code generation? [message #1859995 is a reply to message #1859992] Sun, 09 July 2023 08:07 Go to previous message
Sascha aka. GlancingMind is currently offline Sascha aka. GlancingMindFriend
Messages: 5
Registered: April 2023
Junior Member
> Simply don't implement the generator / implement the one you call via command in another class is not an option?

Oh boy, didn't think about that one. I guess this should work.

Thank you! :-)
Previous Topic:Hover service on keywords (language server)
Next Topic:LSP Support: Binding for custom ResourceSet is not considered during runtime
Goto Forum:
  


Current Time: Fri Dec 13 00:42:17 GMT 2024

Powered by FUDForum. Page generated in 0.03422 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top