dotnet / dotnet/fsharp

Code navigation and syntax highlighting in MSVS breaks after switching Git branches

Open
#13,496 7 comments 0 reactions 0 assignees View on GitHub
AI-thinks-windows-only Area-VS-Editor Bug Impact-Medium
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

Sometimes (not always, unfortunately) syntax highlighting and navigation breaks in some tabs, not all of them though.

**Repro steps**

1. Have a solution open, multiple tabs open, some of them pinned (not sure if it matters). In my case, a lot of tabs were open.
2. Switch branch, I suspect, it's better if it leads to projects or solution being reloaded.
3. Hope that you caught the issue this time.

**Expected behavior**

This doesn't happen, code navigation and highlighting remain intact.

**Known workarounds**

Reopen Visual Studio.

**Related information**

* Operating system: Win 10
* .NET Runtime kind: dotnet 6.0
* MSVS version: 17.2.5, but it was definitely present in some of the earlier versions as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.