microsoft / microsoft/vscode-cmake-tools
Project outline view refresh issue adding CMake project to workspace
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 546
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 32
Description
### Brief Issue Summary
Starting from a workspace having a CMake project up and running already, proceeding to `add folder to workspace` targeting another CMake project, I'm ending with empty project outline while CMake is proceeding to right configure step.
The very same happens if I rely on some extensions promoting by the end of their process some `vscode.workspace.updateWorkspaceFolders(vscode.workspace.workspaceFolders ? vscode.workspace.workspaceFolders.length : 0, null, { uri: projectUri });` programmatic addon to workspace.
Both case, project outline is being populating forcing a `Developer : windows reload`
I suspect some event missing or not considered playing with multiroot workspace ... but only a guess.
Any comment, advice, .. welcome ! Thanks already.
PS: seen in the past, my latest trial is based on 1.20.52 CMake tools extension, VSCode 1.97.2 & Windows 10 OS
### CMake Tools Diagnostics
```shell
```
### Debug Log
```shell
```
### Additional Information
_No response_
Contributor guide
Research direction
Start by reproducing the issue with an existing CMake project, then add a second project through VS Code's Add Folder to Workspace flow and the reported vscode.workspace.updateWorkspaceFolders call. Trace how the project outline refreshes while CMake configures; done means the outline populates without requiring a Developer: Windows Reload.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, typescript, vscode
- Domain
- build-system, developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100