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

Post process schema #206

Closed cherylking closed 1 year ago

cherylking commented 1 year ago

Fixes #186

This PR updates the default cached schema to remove the anyAttribute from elements without extraProperties. It also does the same post processing on generated schema files for local Liberty installations and Liberty running in containers.

Here is the before (no diagnostic on the bogus attribute):

Screenshot 2023-08-25 at 2 01 22 PM

And the after:

Screenshot 2023-08-25 at 2 07 06 PM

cherylking commented 1 year ago

Since git won't show the diff for the xsd file, I am including a couple screenshots of a diff in VS Code. You can see it is a lot of formatting differences and explicit end elements instead of /> on the element itself. The second screenshot shows an example of the anyAttribute removal.

Screenshot 2023-08-25 at 3 03 59 PM

Screenshot 2023-08-25 at 3 06 48 PM