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

Multi root workspace explorer is not getting updated #29605

Closed
sandy081 opened this issue Jun 27, 2017 · 10 comments
Closed

Multi root workspace explorer is not getting updated #29605

sandy081 opened this issue Jun 27, 2017 · 10 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug file-watcher File watcher important Issue identified as high-priority verified Verification succeeded workbench-multiroot Multi-root (multiple folders) issues
Milestone

Comments

@sandy081
Copy link
Member

Testing #29478

image

  • Set up a multi root workspace (Eg: vscode & vscode-docs)
  • vscode-docs repository has incoming changes
  • Pull changes in vscode-docs repo from another Editor (VS Code stable or terminal)

Expected above multi root workspace is updated with new additions/deletions of files. But not.

image

@sandy081
Copy link
Member Author

Guess it is related to #29438 ?

@sandy081
Copy link
Member Author

Also file content changes are not updated.

kapture 2017-06-27 at 15 31 30

@sandy081
Copy link
Member Author

Also adding a folder is not picked up

@bpasero
Copy link
Member

bpasero commented Jun 27, 2017

@sandy081 any output when you run with --verbose?

@bpasero bpasero self-assigned this Jun 27, 2017
@bpasero bpasero added this to the June 2017 milestone Jun 27, 2017
@bpasero bpasero added bug Issue identified by VS Code Team member as probable bug file-watcher File watcher workbench-multiroot Multi-root (multiple folders) issues labels Jun 27, 2017
@sandy081
Copy link
Member Author

sandy081 commented Jun 27, 2017

@bpasero I do not see any output when I change files in second root folder from outside. But I see events log in the console when I change files in first root folder from outside.

kapture 2017-06-27 at 16 15 56

@bpasero
Copy link
Member

bpasero commented Jun 27, 2017

@sandy081 I just tried exactly that scenario (had vscode master, docs and distro details) and did a git pull and the contents in the explorer got updated.

Can you share your settings? Does it reproduce from a clean VS Code (code-insiders --user-data-dir someDir...)

@sandy081
Copy link
Member Author

@bpasero Nothing changed with new user data dir and also disabling extensions.

@bpasero
Copy link
Member

bpasero commented Jun 27, 2017

@Tyriar I think you have a wrong check in https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/services/files/node/watcher/nsfw/nsfwWatcherService.ts#L161 for finding out if a folder is a child of another folder that is already watched. A simple indexOf will not do it. I suggest you use one of our helper functions: https://github.com/Microsoft/vscode/blob/master/src/vs/base/common/paths.ts#L359

@bpasero bpasero removed their assignment Jun 27, 2017
@bpasero bpasero added the important Issue identified as high-priority label Jun 27, 2017
@sandy081
Copy link
Member Author

sandy081 commented Jun 27, 2017

Good finding @bpasero 👍

For the workaround, as @bpasero suggested, I will use folders not starting with same name.

@Tyriar
Copy link
Member

Tyriar commented Jun 27, 2017

Good find 👍

@Tyriar Tyriar closed this as completed in a370420 Jun 28, 2017
@sandy081 sandy081 added the verified Verification succeeded label Jun 29, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug file-watcher File watcher important Issue identified as high-priority verified Verification succeeded workbench-multiroot Multi-root (multiple folders) issues
Projects
None yet
Development

No branches or pull requests

3 participants