Closed peter-lyons-kehl closed 1 year ago
I do not see this in my testing:
Notice how the file mode is plain text
I suspect this is either coming from some extension or you've configured the files.associations
setting so that LICENSE*
files are treated as markdown
Thank you Matt @mjbvz for showing me the file type/mode in the status bar (I usually have the status bar hidden).
To help your or others reproduce this, or to narrow it down:
LICENSE-MIT
as a file) - still treated as Markdown:
files.associations
shows nothing:
~/.config/Code - Insiders
grep -r files.associations .
grep: ./User/workspaceStorage/1665008696241/state.vscdb: binary file matches
grep: ./CachedData/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/chrome/js/31ee7cfab97a2fcb_0: binary file matches
grep: ./CachedData/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/main-e68719928f5a888e10af886be9e8e0c8.code: binary file matches
grep: ./CachedData/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/extensionHostProcess-7ef49542c15227bc893f7f32694b5a00.code: binary file matches
grep: ./CachedData/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/watcherMain-cc39914cfb5f441917c826245a3e721f.code: binary file matches
grep: ./CachedData/92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9/ptyHostMain-30f3fcc592e9f3632fbc25575c634759.code: binary file matches
Please suggest steps for me, or re-open & investigate/delegate.
What about the files.defaultLanguage
setting?
No value seems to show up for files.defaultLanguage
- I don't even see any input box/checkbox/dropdown list for this setting:
That Markdown detection somehow depends on the file name being in CAPITAL-CASE. lowercase-named-file
shows up as Plain Text
:
If there is any more efficient way to get my settings to you (or to anyone else), I'm happy to ZIP up whatever needed. (I'm on Manjaro Linux, have 3 VS Code installations: Insiders, (stable) VS Code and Code - OSS
.)
The problem shows up only if the filename starts with LICENSE-
(in CAPS). A different prefix - even if in CAPS - makes it Plain Text
:
This happens on no machines I've tested. You can send me your settings but tbh this isn't a priority issue
Replicable in current Insiders (currents as shipped by Manjaro Linux):
Does this issue occur when all extensions are disabled?:
Steps to Reproduce:
LICENSE-
and with capitals after the hyphen, likeLICENSE-MIT
On the contrary
LICENSE