Live-share: Should provide complete FileSystemProvider for VS Code extensions

Created on 10 Aug 2020  路  3Comments  路  Source: MicrosoftDocs/live-share

When uri points to vsls:///path/filename, vscode.workspace.fs.readFile(uri) does not work on the guest machine for binary files.

Live Share should provide a complete FileSystemProvider supporting binary files.

I am a contributor to LaTeX Workshop, VS Code extension for LaTeX editing. @daytonellwanger has made a PR that made the extension support Live Share. However, the PR makes the maintenance of the extension more difficult, putting code fragments for Live Share everywhere in the codebase.

I have found that if FileSystemProvider by Live Share supports binary files, the PR can get much more straightforward. I cannot see why it doesn't support binary files. Virtual filesystems provided by FileSystemProvider are not intended only for text files.

Moreover stat.size returned by vscode.workspace.fs.stat(uri) is undefined. That should be fixed too.

language services feature-request p2

All 3 comments

F

@daytonellwanger , what is the state of the binary support on our file system provider implementation, do we vere face some limitations on our extension due to this?

Closing this as a duplicate of #1895, so that we can consolidate the discussion. In general, we鈥檒l plan to reassess support for binary files in Live Share, once folks are back from the holidays.

Was this page helpful?
0 / 5 - 0 ratings