Sometimes I have multiple copies of my source code in different directories - due to working with different branches in git.
When I switch SE workspaces from one of these directories to another, and then I look for a file in the "Smart Open", it is finding files in my old workspace (different directory) that I closed and am no longer using. Then I need to be really careful which file I choose. Due to this, I've been fully closing SE and reopening it whenever I switch workspaces.
I created a test project so SlickTeam can reproduce. I uploaded it to support - see sopen_multiproj.tar.gz.
The issue does not happen with a clean config, so my .tar.gz file has many files from my config to aid reproduction.
Here are the steps to reproduce.
0. Apply my SE configuration as included in the .tar.gz file (doesn't seem to reproduce with clean config)
1. Project->Open Workspace choose prj1/myprj.vpw
2. In Smart Open, type "test.cpp" and open the prj1/test.cpp file
3. On line 10, highlight "printFunc()" and press Ctrl+/ to find all references.
4. Project->Open Workspace, choose prj2/myprj.vpw
5. File->Close All to get rid of the test.cpp file from prj1 that is still open
6. Type "test.cpp" into smart open, observe that the test.cpp from ../prj1 is listed there when it should not be! See attached screenshot.
Thanks for taking a look. I'd rather not need to close SE and reopen it whenever I switch workspaces.
I'm using 22.0.2.1 with hotfix 11 on Linux x64.