Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filewatcher to enable custom config support for LCLS #510

Merged
merged 9 commits into from
Oct 19, 2023

Conversation

evie-lau
Copy link
Member

@evie-lau evie-lau commented Oct 2, 2023

Resolves #490
Add file listener - notify LCLS to process liberty-plugin-config.xml files when a filechange is detected.

Also requires LCLS 2.1 or 2.1-SNAPSHOT
Merging this change does not break existing support for LCLS files.

Notes

Currently this only works if liberty-plugin-config.xml changes after IntelliJ/LCLS is initialized.
Liberty Tools IntelliJ doesn't initialize workspace folders, which is how the custom config files are discovered on LCLS initialization. Related to #483

Also to note, it seems the intellij-quarkus plugin has made changes to enable workspace folders, and also enable the LSP protocol for workspace/didChangeWatchedFiles, which may replace these changes at some point in the future.

@evie-lau evie-lau requested a review from TrevCraw October 3, 2023 15:27
Copy link
Member

@turkeylurkey turkeylurkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work!

@evie-lau evie-lau merged commit 03007c7 into OpenLiberty:main Oct 19, 2023
2 of 3 checks passed
@evie-lau evie-lau deleted the customConfigSupport branch October 19, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change file monitoring for LCLS
4 participants