[built-in extensions] All files with a matching file extension should be considered to be of the relevant language #103042
Labels
bug
Issue identified by VS Code Team member as probable bug
git
GIT issues
insiders-released
Patch has been released in VS Code Insiders
verified
Verification succeeded
Milestone
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:
Properties
language only to files named exactly.npmrc
, e.g. not tojohn.npmrc
Ignore
language only to files named exactly.npmignore
, e.g. not toserver.npmignore
Ignore
language 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"
The text was updated successfully, but these errors were encountered: