Open tomayac opened 4 weeks ago
@tomayac thanks for reaching out, we do indeed have interest in this!
However, maybe not for our desktop experience where we need file watching support also in node.js and leverage https://github.com/parcel-bundler/watcher which is quite efficient, non-polling, leveraging OS watch mechanisms (fsevents
, ReadDirectoryChangesW
, inotify
).
But VS Code for Web leverages the file system access API where we currently miss a way of implementing the watch
method for notifying about file changes:
Steps to try it out:
Happy to integrate it there. Is there a way to sign up to the origin trial?
@tomayac thanks for reaching out, we do indeed have interest in this!
Amazing :-)
However, maybe not for our desktop experience where we need file watching support also in node.js and leverage https://github.com/parcel-bundler/watcher which is quite efficient, non-polling, leveraging OS watch mechanisms (
fsevents
,ReadDirectoryChangesW
,inotify
).
Yes, makes sense. Node.js already can do this for you.
But VS Code for Web leverages the file system access API where we currently miss a way of implementing the
watch
method for notifying about file changes:Steps to try it out:
- open https://vscode.dev/
- click on "Open Folder"
- pick a local folder
- notice how changes done outside the browser are not reflected inside the browser directly
This is the exact use case this new API proposal aims to address.
Happy to integrate it there. Is there a way to sign up to the origin trial?
Yes, just go to the sign up page and sign up for your origin https://vscode.dev/
. This gives you a token. Next, follow the instructions in this article to integrate it in the app.
Hey Visual Studio Code team,
This is Tom from Chrome's DevRel team. I wanted to point you at an exciting new origin trial that we run in Chrome, namely for the File System Observer API. The core idea is to help IDEs like yours with their file system operations. I think currently this happens in
workspaceWatcher.ts
and is based on polling. The new API could help you optimize this task:If this is of interest, happy to help you get started. Feel free to reach out.
Cheers, Tom