microsoft / microsoft/vscode-cmake-tools
Lag when generating targets immediately after switching kits
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 546
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 32
Description
环境:
Win10+MinGW
GCC 13.2
Clang 18.1.1
cmake 3.29
VS 2022 17.9.5
VSCode 1.87.2
ms-vscode.cmake-tools 1.17.17
ms-vscode.cpptools 1.19.9
复现步骤:
1. 随便创建一个cmake项目
2. 在状态栏中切换编译套件,然后马上点生成目标
在来回切换编译套件并马上生成目标时,就会出现卡顿,响应很慢,此时VSCode的CPU占用率比较高。

Contributor guide
Research direction
Start by reproducing the lag in a minimal CMake project using the listed Windows, compiler, CMake, VS Code, and extension versions. Focus on the sequence of switching kits and immediately generating targets; done means that repeated sequence no longer causes the reported slow response and high CPU usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, typescript, vscode
- Domain
- build-system, developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100