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

How create a file asociation for name with any other extension? #157

Open
FabianMontoya opened this issue Dec 30, 2023 · 2 comments
Open
Labels
feature request Request for new functionality

Comments

@FabianMontoya
Copy link

I want to add a file association for all the files that begins with .env. and that the end extension could be anything the gear icon, for example:

.env.dev
.env.template
.env.stage

I already tried with:

"symbols.files.associations": {
    "app.module.ts": "nest",
    "*.module.ts": "nest",
    ".env.*": "gear"
  }

But it didn't work, how can I do that?

@miguelsolorio
Copy link
Owner

You can only use * at the beginning, so your example of .env.* isn't supported. I'll add this as a feature request.

@miguelsolorio miguelsolorio added the feature request Request for new functionality label Jan 2, 2024
@pawel-kuras
Copy link

or, start with a string and end with an extension, ie. if you want multiple serverless files you have something like serverless-<purpose1>.yml and serverless-<purpose2>.yml, and would want the file association to be:

"symbols.files.associations": {
  "serverless-*.yml": "severless"
},

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

No branches or pull requests

3 participants