Skip to content

Fix issues with remapping of .C files #13476

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

Merged
merged 9 commits into from
Apr 9, 2025

Conversation

Colengms
Copy link
Contributor

@Colengms Colengms commented Apr 9, 2025

Fixes an issue where the explicit association of .C files in files.associations was not respected. We will now only remap a .C file to C++ if there is not an existing mapping for the file.

Because the first attempt to open the file wrote to the files.associations, subsequent attempts to change the language ID using the UI will now properly take precedence (as long as the files.associations entry exists, regardless of what it's set to).

Also fixes a bug in a prior change that could result in visible files not being tracked properly.

@Colengms Colengms requested a review from a team as a code owner April 9, 2025 00:38
@github-project-automation github-project-automation bot moved this to Pull Request in cpptools Apr 9, 2025
@Colengms Colengms changed the title Fix an issue if a user explicitly sets a .C file to C Fix an issue with previous PR Apr 9, 2025
sean-mcmanus
sean-mcmanus previously approved these changes Apr 9, 2025
@Colengms Colengms changed the title Fix an issue with previous PR Fix issues with remapping of .C files Apr 9, 2025
sean-mcmanus
sean-mcmanus previously approved these changes Apr 9, 2025
@Colengms Colengms merged commit a71cbad into main Apr 9, 2025
6 checks passed
@Colengms Colengms deleted the dev/coleng/fix_language_change_issue branch April 9, 2025 01:53
@github-project-automation github-project-automation bot moved this from Pull Request to Done in cpptools Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants