-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Behavior of detecting the file language #101573
Comments
I can reproduce in Code stable, but not Insiders, but have no clue what has changed. @simpleapples can you try to reproduce with our insiders? |
Hi, @bpasero, thank you for your response. I can't reproduce the same result on the latest insider build. There is no essential change between insider build and stable build on the file So I have the same confusion about the different behaviors. |
Ok, looks like this got fixed somehow I cannot explain why. We can reopen if this comes back next month after we have released. |
I got reasons about this issue.
Next step: Just to explain. |
Hi, @bpasero , I'm confused about the mechanism of file type detecting. As you know, there is a But, if we add a pattern What do you think about it ? |
Steps to Reproduce:
dockerfile.go
,dockerfile.py
or other extensions.Dockerfile
, but it should be a go file or python file.Related logic:
I found the file detecting logic is here:
vscode/src/vs/base/common/mime.ts
Lines 195 to 208 in 697b702
Filename Match has the higher priority than Extension Match, I think it should be reconsidered. Extension Match should have the highest priority.
Does this issue occur when all extensions are disabled?: Yes/No
Yes
The text was updated successfully, but these errors were encountered: