Something wrong with VSCode on MacOS since few extension updates ago

Hi,

Don't know if this is specific to my environments, but my editor is getting messy.

I mainly develop in 2 languages, Rust & C++. So only Rust-analyzer and C/C++ extensions in place.

I think VSCode is getting mad in file extension detection, actually don't know if it is VScode the root cause of the issue or last extension updates.
Screenshot 2024-04-23 at 14.17.26

It looks like rust files are considered as C++ files which affects the editor that considers most of the code being comments (No intellisense anymore, no hightlight, etc.).

Is it only on MacOS or does this also affect other OSes? What would be your recommendation to solve this very annoying issue?

Thx

  • Do you have anything in your own VS Code settings under files.associations?
  • Do the files work okay if you open one file, go to the Editor Language menu (in the right end of the bottom status bar) and change the language from β€œC++” to β€œRust”? You can also edit the association settings from there.
  • What extension do you have installed for C++?
1 Like

I tried adding in the settings the following:

"files.associations": {
    "*.rs": "rust"
}

But didn't change anything. Yes, I can change the language in the status bar, but when restarting VSCode it gets back to C++.

C/C++ extensions are the ones from Microsoft: C/C++ Extension Pack 1.3.0. I also tried to deactivate them to see if it could solve but didn't

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.