-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto select active folder feature not working with project having same starting names #4146
Comments
Issue spotted I think: vscode-cmake-tools/src/util.ts Line 950 in d0ad11e
Small test adding a trailing path separator of the parent project path to avoid partial match looks to fix the issue. I can create a PR if that's fine :) |
@MNASTM That would be great! We're always happy to take community contributions. |
I am not able to push my branch:
Either I am missing something from this project or I have a conflicting configuration with my compagnie organization. Please let me know if something is required from your side? |
Contributed by STMicroelectronics Signed-off-by: Matthieu NAUD<[email protected]>
Contributed by STMicroelectronics Signed-off-by: Matthieu NAUD<[email protected]>
Contributed by STMicroelectronics Signed-off-by: Matthieu NAUD<[email protected]>
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:
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 toMyProjectA
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: