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

globs are broken in fileAssociations.pattern #1643

Open
domWalters opened this issue May 18, 2024 · 0 comments
Open

globs are broken in fileAssociations.pattern #1643

domWalters opened this issue May 18, 2024 · 0 comments

Comments

@domWalters
Copy link

domWalters commented May 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant