You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During development of OmniSharp/omnisharp-roslyn#1694 i tried to figure out why removal of folders didn't send any events for backend. Tracked down that on VsCode side file watched doesn't get triggered in two cases: when folder is renamed or deleted from vscode.
There are similar issues reported when files are handled outside of vscode (like mv command) but didn't find one that matches this case when directly made from vscode UI.
What i expect to see is all files under folder gets onDidDelete from watcher, but nothing gets triggered. Similiar thing happen if i rename folder from vscode, no events triggered and any change to files under folder after that cause onDidCreated to trigger. On rename case i think i expect to see delete->create similar for file rename event.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered:
Debugged this bit deeper, indeed fie watcher gets triggered (log lines are shown etc) but glob patterns seems to work bit oddly:
Omnisharp-vscode uses glob pattern **/*.* to notice all filechanges at workspace workspace.createFileSystemWatcher('**/*.*').
Lets think theres /foo/bar/asd.cs file where /bar/ folder gets removed.
When folder gets removed no file watcher event is triggered for **/*.* pattern. I think i except to see "removed /foo/bar/asd.cs" since it's matches pattern and similar events happen for update/create.
When folder gets removed with pattern **/ event of removed folder /foo/bar/ gets triggered. I think this is working as i except to see.
When folder gets removed with pattern **/* event of removed folder /foo/bar/ gets triggered. But no event for file /foo/bar/asd.cs. I think here i except to see both /foo/bar/ and /foo/bar/asd.cs since they match to pattern.
Is this by design or bug? I can fix that on extension side by figuring out files under removed folders but for me behavior feels bit strange 🤔
During development of OmniSharp/omnisharp-roslyn#1694 i tried to figure out why removal of folders didn't send any events for backend. Tracked down that on VsCode side file watched doesn't get triggered in two cases: when folder is renamed or deleted from vscode.
There are similar issues reported when files are handled outside of vscode (like
mv
command) but didn't find one that matches this case when directly made from vscode UI.Steps to Reproduce:
What i expect to see is all files under folder gets
onDidDelete
from watcher, but nothing gets triggered. Similiar thing happen if i rename folder from vscode, no events triggered and any change to files under folder after that causeonDidCreated
to trigger. On rename case i think i expect to see delete->create similar for file rename event.Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: