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

Allow LCLS to handle custom config files #286

Merged
merged 2 commits into from
Sep 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,13 @@ function prepareClientOptions(Liberty_LS :boolean) {
return {
// Filter to `bootstrap.properties` and `server.env` files within `src/main/liberty/config` or `usr/servers`
documentSelector: [{ scheme: "file",
pattern: "**/{src/main/liberty/config,usr/servers/**}/{bootstrap.properties,server.env}" }],
pattern: "**/{*.properties,*.env}" }],
evie-lau marked this conversation as resolved.
Show resolved Hide resolved
synchronize: {
configurationSection: SUPPORTED_LANGUAGE_IDS,
fileEvents: [
workspace.createFileSystemWatcher("**/bootstrap.properties"),
workspace.createFileSystemWatcher("**/server.env")
workspace.createFileSystemWatcher("**/*.properties"),
workspace.createFileSystemWatcher("**/*.env"),
workspace.createFileSystemWatcher("**/liberty-plugin-config.xml")
],
}
};
Expand Down