No file events for undo operations from finder/explorer #226903
Labels
file-watcher
File watcher
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
upstream-issue-linked
This is an upstream issue that has been reported upstream
Does this issue occur when all extensions are disabled?: No (An extension is needed to create a file watcher and monitor it)
Version: 1.92.2 (user setup)
Commit: fee1edb
Date: 2024-08-14T17:29:30.058Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631
Steps to Reproduce:
workspace.createFileSystemWatcher
, and registers foronDidCreate
(or use the C/C++ Extension with"C_Cpp.loggingLevel": "Debug"
set, and monitor the C/C++ output channel for log messages that refer tofileCreate
.test.h
).Seeing: An onDidCreate is generated for the restored directory but NOT for any of it's contents.
Expected: We should get a file creation notification for all newly discovered files, including those in a directory restored by an undo operation.
We're seeing the same issue on both Windows and macOS. The expectation is that the fileWatcher should inform us when any files or folders are created/deleted/changed under the tree we're monitoring, and not require us to recursively scan the contents of newly added directories ourselves (and only in this odd scenario).
Note that this does not happen when copying a directory full of files into the workspace. In that case, we get notifications for all contents.
MissingFileCreatedNotification.mp4
The text was updated successfully, but these errors were encountered: