[linux] New registered File Watcher doesn't work correctly #5738
Open
Description
Description
I've created new FileSystemWatcher in the next way:
const csprojPattern = '**/*.*';
const csprojWatcher = theia.workspace.createFileSystemWatcher(csprojPattern, false, true, true);
csprojWatcher.onDidCreate(url => {
outputChannel.appendLine('*********File created: ' + url);
//restoreProject(url, outputChannel);
});
Where '**/*.*'
means that I want to catch all files.
The problem is that this file watcher, which should catch all created files, skips some events during cloning the project.
Reproduction Steps
- Download this plug-in which creates new file watcher to catch all created files:
file-watcher.zip - Extract and put
file-watcher/file_watcher.theia
intotheia/plugins
folder and run theia - Open an empty workspace and clone https://github.com/gothinkster/aspnetcore-realworld-example-app
- Open output view with name logs
path_to_workspace/aspnetcore-realworld-example-app/src/Conduit/Conduit.csproj
was cloned but there is no log about it in output view.
OS and Theia version:
OS: Fedora28 (5.0.9-100.fc28.x86_64)
Theia: @theia/example-browser 0.8.0