[LSP]: How to support project configuration files [message #1870557] |
Tue, 03 September 2024 10:30  |
Eclipse User |
|
|
|
Hello,
I'm currently trying to find out how to best implement a project configuration file (e.g. similar to .project/.classpath of JDT Projects).
For example, this configuration contains values relevant to the initialization of the project (e.g. something similar to the classpath in java) in the LSP and the validator.
Changes to the project configuration therefore affect all resources of a project and should be picked up automatically after a change to the file.
I looked into org.eclipse.xtext.workspace.IProjectConfig, however, I found no way of refreshing the config once it was created.
Also, I looked into modeling the configuration file as a language, however, that seems heavyweight.
How would you implement this feature?
Best regards,
Sebastian
|
|
|
|
|
|
|
Re: [LSP]: How to support project configuration files [message #1870578 is a reply to message #1870572] |
Tue, 03 September 2024 13:53   |
Eclipse User |
|
|
|
The documentation of org.eclipse.xtext.ide.server.LanguageServerImpl#didChangeConfiguration says, that the notification is sent from the client;
A notification sent from the client to the server to signal the change of configuration settings.
I have control over one specific client (VSCode) but I don't know what other editors are going to be used.
I don't want to watch the files, because then I have to trigger the builder myself.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03203 seconds