-
Notifications
You must be signed in to change notification settings - Fork 38.2k
Description
Some extensions only apply languages to files with an exact name by default.
They should instead include all files ending with the relevant extension, regardless of the prefix.
Examples I found are:
- The npm extension applies the
Propertieslanguage only to files named exactly.npmrc, e.g. not tojohn.npmrc - The npm extension applies the
Ignorelanguage only to files named exactly.npmignore, e.g. not toserver.npmignore - The git extension applies the
Ignorelanguage only to files named exactly.gitignore, e.g. notclient.gitignore
The built-in file icon theme recognizes these files by their extension and shows the matching icons besides them,
but some extensions don't apply the relevant language to it.
A project might include multiple files of the same type in the same folder, and configure their tools to use one or the other,
depending on the need. All of the files should have the correct language regardless of their filename, all that should matter is the file extension.
Repro: Create and open a file named server.gitignore
Expected: The language mode will be set to the "Ignore" language
Actual: The language mode is "Plain Text"