Skip to content

Fix stale IntelliSense config after preset switches#4874

Merged
hanniavalera merged 2 commits intomainfrom
dev/oakeredolu/staleintellisense
Apr 10, 2026
Merged

Fix stale IntelliSense config after preset switches#4874
hanniavalera merged 2 commits intomainfrom
dev/oakeredolu/staleintellisense

Conversation

@Omotola
Copy link
Copy Markdown
Contributor

@Omotola Omotola commented Apr 9, 2026

Fixes stale cpptools custom-configuration entries that could persist after reconfigure/preset changes and cause Go to Definition to include inactive sources.

Changes
Clear stale per-folder file-index entries before rebuilding cpptools configuration data.
Track indexed files per folder to evict old mappings safely.
Add a regression unit test for folder refresh/preset-switch behavior.
Add CHANGELOG bug-fix entry referencing #4472.

Validation:

Once a preset is set, IntelliSense is now able to find source correctly.
20260410-2114-03 9121485

@Omotola Omotola changed the title Fix stale IntelliSense config after preset switches (fixes [#4472](vscode-file://vscode-app/c:/Users/oakeredolu/AppData/Local/Programs/Microsoft%20VS%20Code/41dd792b5e/resources/app/out/vs/code/electron-browser/workbench/workbench.html)) Fix stale IntelliSense config after preset switches Apr 9, 2026
@hanniavalera hanniavalera force-pushed the dev/oakeredolu/staleintellisense branch from 809599e to e1c8fb1 Compare April 10, 2026 02:23
@Omotola Omotola linked an issue Apr 10, 2026 that may be closed by this pull request
@hanniavalera hanniavalera merged commit af9ed5d into main Apr 10, 2026
4 checks passed
@hanniavalera hanniavalera deleted the dev/oakeredolu/staleintellisense branch April 10, 2026 21:21
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.

[Bug] Compiler commands not being passed to intellisense

2 participants