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

tree-view-sample file update watch() can't listen to the file properly #865

Open
1234567845246 opened this issue May 18, 2023 · 5 comments
Assignees

Comments

@1234567845246
Copy link

The FileSystemProvider class watch() function in the fileExplorer.ts file in the tree-view-sample cannot listen to the treeview properly, so the file tree cannot be updated after changes. In addition, the exists() file is deprecated and can be replaced with access(), and the fs module rm() and mkdir() can be used directly to create recursive creation files. mkdirp and rimraf packages have removed the interface from the example in high versions

@lucasnatanmelo
Copy link

Hello 1234567845246, did you successfully implement the create, edit, delete, rename and etc in folders and files using this FileSystemProvider Class or any other example in the tree view sample?

@1234567845246
Copy link
Author

I just use another 3rd party library "@parcel/watcher", this one works and treeview is changed. I didn't use the rest of the cases much. But this problem not only occurred to me, but also to my three classmates

@1234567845246
Copy link
Author

The FILE was successfully created and deleted from disk, but the treeview was not updated

@lucasnatanmelo
Copy link

lucasnatanmelo commented Jul 15, 2023

Rigth, 1234567845246. Did you succesfully implemented the functionality of drag and drop of files between folders, and the functionality of drag and drop the file for the code editing panel of VSCode? Can we contact or share your code to see how did you implmented these features? Thank you if you could help me!

@1234567845246
Copy link
Author

No, I'm working on how to add files and the input appears in the treeview, just like vscode itself Add files to the file tree.Sorry, I may not be able to help you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants