-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support reading/writing chunks in remote fs #41985
Comments
// todo@joh - have an option to create iff not exist
// todo@remote
// offset - byte offset to start
// count - number of bytes to write
// Thenable<number> - number of bytes actually written
write(resource: Uri, content: Uint8Array): Thenable<void>; |
Plan is to have more explicit, posix-style, calls that open/close a file and that read arbitrary content of a file. Something like this: open(uri: Uri, opts): number | Thenable<number>;
close(fd: number): void | Thenable<void>;
read(fd: number, pos: number, into: Uint8Array): number | Thenable<number>;
write(fd: number, pos: number, data: Uint8Array): number | Thenable<number>; This will compliment the simple |
|
Is this going to be implemented anytime soon? It has been five years and it is still unsupported. |
This is a follow up from #32503 where
IFileService.updateContent()
now accepts aITextSnapshot
to prevent loading the entire buffer into memory. I left a TODO here to useITextSnapshot
directly and not the current fallbacksnapshotToString
The text was updated successfully, but these errors were encountered: