Skip to content

Conversation

Colengms
Copy link
Contributor

@Colengms Colengms commented Sep 11, 2025

Originally, the code involved was attempting to reveal the document if already open in another tab group (which is not the default behavior of VS Code), as that seemed more correct. A user then contributed a change to cause it to properly adhere to the revealIfOpen setting: https://github.com/microsoft/vscode-cpptools/pull/8857/files

However, showTextDocument will honor the revealIfOpen setting by default, making a lot of that code unnecessary. This change removes unnecessary code and does not change the current behavior.

Related:
#13867
microsoft/vscode#263012

@Colengms Colengms requested a review from a team as a code owner September 11, 2025 00:58
@github-project-automation github-project-automation bot moved this to Pull Request in cpptools Sep 11, 2025
@Colengms Colengms changed the title Removed some redundant code related to revealIfOpen setting Remove some redundant code related to revealIfOpen setting Sep 11, 2025
@sean-mcmanus sean-mcmanus added this to the 1.27.6 milestone Sep 11, 2025
@Colengms Colengms merged commit 212fc37 into main Sep 11, 2025
6 checks passed
@Colengms Colengms deleted the dev/coleng/remove_redundant_revealIfOpen branch September 11, 2025 18:28
@github-project-automation github-project-automation bot moved this from Pull Request to Done in cpptools Sep 11, 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