eclipse-lemminx/lemminx

globs are broken in `fileAssociations.pattern`

Opened this issue · 0 comments

If you have a config like:

{
  "fileAssociations": [
    {
      "systemId": "/schema.xsd",
      "pattern": "*-suffix.xml"
    }
  ]
}

This should match a file called file-suffix.xml anywhere in the file system, and check them against schema.xsd that is available in the / (root) directory.

This doesn't work, and for some reason a double glob is necessary:

{
  "fileAssociations": [
    {
      "systemId": "/schema.xsd",
      "pattern": "**-suffix.xml"
    }
  ]
}

This will work.

You can see my specific use case on this forum thread:

https://neovim.discourse.group/t/lemminx-configuration/3895/6


Version: 0.27.0
Editor: Neovim and VSCode
OS: Arch Linux