vscode-cpptools
vscode-cpptools copied to clipboard
Enable the extension will make minimap selectionOccurrenceHighlight not working
Environment
- OS and Version:
- VS Code Version:
- C/C++ Extension Version:
- Other extensions you installed (and if the issue persists after disabling them):
- If using SSH remote, specify OS of remote machine:
- A clear and concise description of what the bug is, including information about the workspace (i.e. is the workspace a single project or multiple projects, size of the project, etc).
Bug Summary and Steps to Reproduce
Bug Summary: Double click a variable will trigger highlighting for all the same name variables in the default vs code minimap. However, after enabling the extension, this highlighting will lose effect.
Steps to reproduce:
- Go to Settings.json without enable the extension
- Enable minimap highlighting by the following settings:
workbench.colorCustomizations": {
"minimap.selectionOccurrenceHighlight": "#00bbd0",
}
- Open a C++ file, double click any variable in the text editor, note that all the same name variable will be highlighted with blue color
- Enable the extension
- Repeat 3, notice no highlighting any more.
Expected behavior
Variables are still able to highlight after enable the extension.
Code sample and Logs
workbench.colorCustomizations": {
"minimap.selectionOccurrenceHighlight": "#00bbd0",
}
Screenshots
No response
Additional context
No response
@reubenzh I couldn't reproduce the issue described. Here is my repro using extension version 1.12.0 on Windows:
Setting used
"workbench.colorCustomizations": {
"minimap.selectionOccurrenceHighlight": "#d00068",
}
The C/C++ extension has no feature that modify the minimap, so the highlighting on the minimap should not get disabled by the extension. Do you have any other extensions enabled/installed? Are there other settings configured? Could you try reloading the window and see if that fixes the issue?
This issue has been closed because it needs more information and has not had recent activity.