This commit is contained in:
Johannes Rieken
2018-04-09 09:40:51 +02:00
parent 1fa265870b
commit 61246f972c
2 changed files with 2 additions and 2 deletions

View File

@@ -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> {