microsoft / microsoft/vscode-cmake-tools

cmake.selectActiveFolder command does not work if there are multiple workspace folders with the same name

Open
#3,538 8 comments 0 reactions 0 assignees View on GitHub
enhancement Feature: extensibility Feature: multiroot Feature: UI help wanted
Dominant language
TypeScript
Stars
1.7k
Forks
546
Avg merge
2d 16h
Merged PRs (30d)
32

Description

### Brief Issue Summary

Internally the cmake.selectActiveFolder command can receive the following parameter types:
- CMakeProject - unfortunately the CMake Tools API only allows me to get a Project, not a CMakeProject instance, so I cannot use the API to distinguish between multiple projects with the same name.
- the parameter can also be a list of strings, but these are the workspace folder names so it cannot differentiate between multiple folders with the same name.

### Additional Information

Cmake Tools version v1.16.32

Contributor guide

Open the contributing guide

Research direction

Start by tracing the cmake.selectActiveFolder command and how it handles CMakeProject versus Project parameters. Read the CMake Tools API behavior for projects and the workspace-folder-name list; done should mean the command can distinguish and select among multiple folders with the same name.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.