mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 04:53:33 +01:00
fix #47363
This commit is contained in:
@@ -132,7 +132,7 @@ class RemoteFileSystemProvider implements IFileSystemProvider {
|
||||
write(resource: URI, content: Uint8Array): TPromise<void, any> {
|
||||
let encoded = Buffer.isBuffer(content)
|
||||
? content.toString('base64')
|
||||
: Buffer.from(content.buffer).toString('base64');
|
||||
: Buffer.from(content.buffer, content.byteOffset, content.byteLength).toString('base64');
|
||||
return this._proxy.$write(this._handle, resource, encoded);
|
||||
}
|
||||
unlink(resource: URI): TPromise<void, any> {
|
||||
|
||||
Reference in New Issue
Block a user