Skip to content

Conversation

CeleritasCelery
Copy link
Contributor

I have run into the issue where the major mode name does not map directly to the language name. For example rustic-mode is one of the most popular packages for Rust development, but the major mode name is "rustic" instead of "rust". This would lead to issues where sometimes copilot would suggest C code instead of rust code in a new file because it didn't recognize the language ID and there was no code in the buffer for it to guess the language. Adding this mapping has resolved that issue for me.

@zerolfx zerolfx merged commit ffbd975 into copilot-emacs:main Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants