Skip to content
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

Fix for Github issue 587: duplicate project structure causes error #1169

Merged
merged 9 commits into from
Apr 16, 2020

Conversation

SchweizS
Copy link
Contributor

This PR resolves: #587

Changes

Added project sourceDirectory to class ProjectNode.
_rootDir is now initialized with sourceDirectory as prefix.
Added projectDirectory to tooltip of ProjectNodes

Notes

Minimal project to reproduce issue:
https://github.com/SchweizS/vscode-cmake-tools587

@SchweizS SchweizS marked this pull request as draft April 11, 2020 17:34
DirectoryNodes use PREFIX/subdir
@msftclas
Copy link

msftclas commented Apr 11, 2020

CLA assistant check
All CLA requirements met.

Copy link
Member

@bobbrow bobbrow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't fully understand your comment on #587. Is there still a bug that this PR doesn't address? I tried the example you posted in the comment as well as the repo you linked in this PR and didn't see a problem with either of them.

@bobbrow bobbrow added this to the 1.4.0 milestone Apr 14, 2020
@bobbrow bobbrow marked this pull request as ready for review April 14, 2020 23:46
@SchweizS
Copy link
Contributor Author

SchweizS commented Apr 15, 2020

i updated the code in the reproduction repository. project(base2) was supposed to be commented out.

1

Additional explanation:

  1. reveal a directory inside a target which is inside a directory
  2. cause an update to the tree view (e.g. select a build/debug target)
  3. items gone

But i found the issue.
It was caused by triggering an event on multiple nodes (SchweizS@215d8ab).
as far as i can see it doesn't change anything if this event is only triggered once.

src/tree.ts Outdated Show resolved Hide resolved
@bobbrow bobbrow merged commit 0d5a097 into microsoft:develop Apr 16, 2020
@bobbrow
Copy link
Member

bobbrow commented Apr 16, 2020

Thank you so much!

@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Notification errors after re-configuration.
3 participants