code-server: File explorer doesn't show new files created from command line
OS/Web Information
- Web Browser: Brave
- Local OS: macOS
- Remote OS: macOS
- Remote Architecture: macOS (not M1)
code-server --version: 4.0.0 (pre-release)
Steps to Reproduce
- launch code-server 4.0.0 pre-release
- open Integrated Terminal
- create new file:
touch hello.txt
Expected
The File Explorer should show the newly created file.
Actual
It doesn’t show.
Logs
N/A
Screenshot
Notes
This issue can be reproduced in VS Code: No
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 16 (8 by maintainers)
Ok, strange. Reproduction seems to be more complicated than I thought. I notice that it doesn’t always occur. But when it does, it always does. But then you can solve it by restarting the web app or reloading it in the browser.
I will see under which conditions the problem occurs and will report back.
same problem on 4.0.2, here is the terminal log 😃
I have the same problem with Explorer on 4.0.2 and in addition, changes to an open file are also not immediately displayed when I have made changes to it via the terminal. This complicates the work sometimes considerably.
The cause is probably the same.
Thanks for reporting! We’ll see if we can reproduce!
I feel like it must be in the file watcher somewhere, I think maybe the first thing would be to make sure it is picking up changes in the workspace.
Oh yeah I noticed this too, I have to keep refreshing the explorer.