vscode-direnv icon indicating copy to clipboard operation
vscode-direnv copied to clipboard

Default .envrc file association

Open thernstig opened this issue 5 years ago • 1 comments

If possible, could the extension make it so that the default file association is set to shellscript for .envrc files? Currently I have to use this in my configuration for it to work:

"files.associations": {
    ".envrc": "shellscript"
},

As .envrc is a shellscript by default, it would be better for everyone if the extension defaulted to this. Not sure if VS Code supports the extension API to do this?

thernstig avatar Jun 13 '19 11:06 thernstig

Just found it it should be entirely possible. I suggested a similar solution for ESLint and it's just to add it like this:

https://github.com/microsoft/vscode-eslint/commit/4d8d1469c2d668b9c897c4a262b0717421c1d1f5

thernstig avatar Jun 17 '19 11:06 thernstig