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
Eclipse UserFriend
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] by Moderator

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
Eclipse UserFriend
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
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
Eclipse UserFriend
> 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: Mon Feb 10 10:58:04 GMT 2025

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

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

Back to the top