lemminx icon indicating copy to clipboard operation
lemminx copied to clipboard

globs are broken in `fileAssociations.pattern`

Open domWalters opened this issue 1 year ago • 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

domWalters avatar May 18 '24 22:05 domWalters