Skip to content

Cache liberty-plugin-config.xml and server properties - #403

Merged
venmanyarun merged 6 commits into
OpenLiberty:mainfrom
GeeTransit:gee-patch-4
Aug 31, 2026
Merged

venmanyarun merged 6 commits into
OpenLiberty:mainfrom
GeeTransit:gee-patch-4

Conversation

@GeeTransit

@GeeTransit GeeTransit commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Should fix OpenLiberty/liberty-tools-vscode#329 by reducing the number of walks from 14 down to 2 when auto-completing a feature in server.xml

Not sure how we could test this, but the logic should work assuming the file watching works.

Side note: the performance issue was introduced in GH-207 since the getLibertyPropertiesFile method does 3 walks and the method it's in (getLibertyRuntimeInfo) is called 4 times, hence adding 12 walks to each LSP request. On a Windows Fyre VM, it increases the delay between pressing Ctrl+Space and seeing the features from around 2 seconds to 6.

Current (click to expand):
old.mp4
This PR (click to expand):
new.mp4

Reduces the number of walks down to 2 when auto-completing a feature.

@venmanyarun venmanyarun left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Make sure to run ./mvnw clean install in both liberty-ls and lemminx-liberty , so that all tests including IT are verified

testGetFeatures() in lemminx-liberty/src/it/schema-gen-wlp-it will be failing.. you need to provide the latest version of liberty(26.0.0.8) in the last line instead of 26.0.0.2
org.junit.jupiter.api.Assertions.assertEquals(SettingsService.getInstance().getLatestRuntimeVersion(), "26.0.0.2");

Also, can you add screen recordings from windows fyre VM before and after the changes?

@GeeTransit

Copy link
Copy Markdown
Contributor Author

Added Windows Fyre VM recordings of features auto-completion before and after this PR.

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.

Investigate performance slowdown when editing server.xml

3 participants