-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Filetype autocompletion suggests wrong filetypes #3215
Comments
Damn, it was me (again) with #3090. We've different approaches to solve this (by accessing the
The last one seems to be the most obvious to me. |
There is also another approach, which would prefer the most, if we lived in an ideal world: align all *.yaml filenames with their But due to backward compatibility reasons etc we probably don't want to do that. So, since we need to match by |
Yep, unfortunately we (I more than you) broke more than necessary.
Ok, then we go with the more expensive approach and sacrifice a few more CPU cycles by parsing again. |
When typing
set filetype
and pressing Tab to autocomplete, some of the suggested filetypes are incorrect (there is no syntax highlighting for them). For example,sh
is suggested, but the actual filetype for shell scripts isshell
, notsh
. So the user executesset filetype sh
, and as a result, the syntax is not highlighted at all.The reason is that the autocompleter simply returns the basenames of syntax
*.yaml
files, but some of those file names don't matchfiletype
values inside those files. Here is the complete list of such non-matching filetypes:Commit hash: c2c2b2a
OS: any
Terminal: any
The text was updated successfully, but these errors were encountered: