OpenLiberty / liberty-language-server

The Liberty Config Language Server provides language server features for Liberty server configuration files through any of the supported client IDEs.
Eclipse Public License 2.0
5 stars 11 forks source link

LCLS does not yet invalidate custom config files #213

Closed dshimo closed 10 months ago

dshimo commented 1 year ago

As a follow up to #66, the set of custom config files, specifically .properties and .env files, will only grow as no behavior for invalidation has been written. As a consequence, if the liberty-plugin-config.xml gets deleted or changed to remove a reference, that file would continue to receive LCLS support.

The logic for adding to the custom config file starts in LibertyWorkspaceService.didChangedWatchFiles, which adds to the set regardless of creation, change, or deletion.

scottkurz commented 10 months ago

For a case like this I wonder how bad it is to continue to offer LCLS assist ?

I was considering opening an issue suggesting we also add assist to any file named 'bootstrap.properties' or 'server.env' no matter what the location or what the plugin config XML points to.

Though that's probably best treated as a separate issue, maybe we could start w/ one discussion in our next DXDI call.

Maybe I could sum it up as saying consider erring on the side of adding assistance.

scottkurz commented 10 months ago

DXDI 2023-10-25 UPDATE:

Decided:

  1. No need to "invalidate" assist for previous config files: bootstrap.properties, server.env - If they were once config files, not valuable to remove this support
  2. Also worth providing assist for any file named bootstrap.properties or server.env

@evie-lau will let you to decide what issues/PR to use for this.

evie-lau commented 10 months ago

I summarized the discussion takes in a new issue, and resolved the rest of the points, including code comments regarding this issue of invalidating config files.