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
And send a request from the server whenever you need to read files:
const raw = await this._connection.sendRequest<string>('persisted/read');
But I noticed that anycode only does this in the node runtime. Does it mean that this won’t work in the browser?
Is there a more direct way to allow the server access to the file system or will there be one in the future?
I’m asking because I’m working on migrating the Wake lsp extension to the browser. Its server is compiled from C++ to wasm and it requires access to the file system, so I'm struggling to make the transition.
The text was updated successfully, but these errors were encountered:
Hi,
Not having vscode.workspace.fs on the server side of an extension poses quite a challenge.
One way I see to overcome this is the way anycode does it:
Add a handler to the client for fetching file contents:
And send a request from the server whenever you need to read files:
But I noticed that anycode only does this in the node runtime. Does it mean that this won’t work in the browser?
Is there a more direct way to allow the server access to the file system or will there be one in the future?
I’m asking because I’m working on migrating the Wake lsp extension to the browser. Its server is compiled from C++ to wasm and it requires access to the file system, so I'm struggling to make the transition.
The text was updated successfully, but these errors were encountered: