-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Change R markdown language id to fix language server filetype detection #9012
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should fix this by adding the language-id = "rmd"
key instead: that will send rmd
to the language server but still keep rmarkdown
as the name for :set-language
etc.
Cool, didn't know that was a thing, thanks @the-mikedavis. I've confirmed that the language server works if we change that instead and pushed the simplified changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This merge request renames the R markdown language from
rmarkdown
tormd
. When I added R and R markdown support back in #1998, I mistakenly chose thermarkdown
name because I didn't realize it was used for anything other than the display name in Helix's statusline. Switching the name tormd
is necessary to fix the R language server's filetype detection, which relies on the language name (see this line of code).