Skip to content

Auto select active folder feature not working with project having same starting names #4146

@MNASTM

Description

@MNASTM

Brief Issue Summary

Considering user is NOT working with multi root workspaces, but with the single folder structure:

MyFolder
├── .vscode
├── MyProjectA
├── MyProjectABC

the .vscode/.settings.json contains:

{
"cmake.sourceDirectory": ["<pathTo>/MyFolder/MyProjectA","<pathTo>/MyFolder/MyProjectABC"],
}

In this case, the Automatic select active folder feature is not working and always stays on MyProjectA, I assume because:

<pathTo>/MyFolder/MyProjectABC/src/main.c starts with <pathTo>/MyFolder/MyProjectA so it thinks it belongs to MyProjectA

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: UIbuga bug in the producthelp wantedwe currently are not planning work on this and would like help from the open source community

    Type

    No type

    Projects

    Status

    Completed

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions