microsoft / microsoft/vscode-cmake-tools

Incomplete links in the output window when there are spaces in the configuration preset name

Open
#4,311 8 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### Brief Issue Summary

#### Environment:
VS Code 1.97.2 + CMake Tools v1.21.0 (pre-release)

#### More info:
This issue reproduces on Windows, Linux, and Mac platforms

#### Repro steps:
1. Unzip the project and open it with vscode
[TestProject.zip](https://github.com/user-attachments/files/19005850/TestProject.zip)
2. Open the command palette (F1 or Ctrl+Shift+P)
3. Enter and select the command “CMake: Configure”
4. Press “Ctrl” and click the link in OutPut window

![Image](https://github.com/user-attachments/assets/be762998-53c8-45c9-869c-7338f6157928)

#### Actual result:
The link is incomplete, it's "_C:/xxx/Test/out/build/custom_", an error window pops up when clicking it
![Image](https://github.com/user-attachments/assets/0358ce71-922d-40b1-979a-5bc5cccc3ee5)

#### Expected result:
The link should be "_C:/xxx/Test/out/build/custom **configure preset**_"

### CMake Tools Diagnostics

```shell

```

### Debug Log

```shell

```

### Additional Information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the “CMake: Configure” command and the Output window link handling, reproducing the issue with the attached TestProject.zip and a configuration preset whose name contains spaces. Done means the complete path, including the preset name, is recognized as one clickable link on Windows, Linux, and macOS.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.