microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.46k stars 449 forks source link

`CMakeUserPresets.json` not visible in PROJECT OUTLINE #3832

Closed Zingam closed 2 months ago

Zingam commented 3 months ago

Type: Bug

  1. Create a standard CMake project with CMake presets.
  2. Create CMakePresets.json and CMakeUserPresets.json

Only CMakePresets.json is visible in the PROJECT OUTLINE. Probably CMakeUserPresets.json should be displayed too.

Extension version: 1.18.42 VS Code version: Code 1.90.1 (611f9bfce64f25108829dd295f54a6894e87339d, 2024-06-11T21:01:24.262Z) OS version: Windows_NT x64 10.0.19045 Modes: Remote OS version: Linux x64 5.15.153.1-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2808)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|7.65GB (0.66GB free)| |Process Argv|--crash-reporter-id c7a16f6b-33fc-42c2-aedd-68d1d1ff8687| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|WSL: Ubuntu-24.04| |OS|Linux x64 5.15.153.1-microsoft-standard-WSL2| |CPUs|Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 0)| |Memory (System)|3.72GB (2.79GB free)| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 chatpanelc:31048052 dsvsc021:30996838 bdiig495:31013172 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 pythonprt:31056678 dwnewjupyter:31046869 newcmakeconfigv2:31071590 ```
Evelyn-001 commented 3 months ago

We can repro this issue with below: ENV: Extension version: 1.18.42 VS Code version: Code 1.90.1 Repro steps:

  1. Create a standard CMake project with CMake presets.
  2. Add a CMakeUserPresets.json based on CMake presets.
  3. Switch to CMake Tools pane and observe the PROJECT OUTLINRE

Expected: CMakeUserPresets.json should be displayed in the PROJECT OUTLINE.

Actual: CMakeUserPresets.json is invisible in the PROJECT OUTLINE. image

Evelyn-001 commented 2 months ago

Verified this issue has fixed. ENV: VS Code: 1.91.0 CMake Tools: v1.19.18 (pre-release) image

v-frankwang commented 1 month ago

We verified the issue on CMake tools: v1.19.45 and it has been fixed.

ENV: CMake Tools:v1.19.45 vscode: 1.92.2

Actual result: image