openvscode-server icon indicating copy to clipboard operation
openvscode-server copied to clipboard

'createFileSystemWatcher' does not detect changes when source was unzipped

Open veredcon opened this issue 1 year ago • 0 comments

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.84.2
  • OS Version: gitpod

Steps to Reproduce:

  1. Install this example extension: https://github.com/815are/virtualFileWatchIssue.git
  2. run command watcherTest: Register global watcher to register global watchers to monitor {}/{*}.js file changes.
  3. Extract temp/testProject.zip by running command unzip testProject.zip.
  4. Change js file from extracted sources -> testProject\ext\test.js. --> You won't get any notification message upon creation of this file (when it was unzipped) nor in when the file has been changed.

Notes:

  • There is code where watchers for js files are registered(using 2 approaches) - https://github.com/815are/virtualFileWatchIssue/blob/main/src/extension.ts#L26-L49
  • watchers-test-0.0.5.vsix can be installed as a vsix
  • Watchers are working fine if you reload window. Problem is that watcher does not work right after unzip.

veredcon avatar Dec 04 '23 14:12 veredcon