提交 1d851ecf 编写于 作者: M Martin Aeschlimann

MainThreadFileSystem does not await

上级 75fed407
......@@ -96,19 +96,19 @@ export class MainThreadFileSystem implements MainThreadFileSystemShape {
}
async $rename(source: UriComponents, target: UriComponents, opts: FileOverwriteOptions): Promise<void> {
this._fileService.move(URI.revive(source), URI.revive(target), opts.overwrite);
await this._fileService.move(URI.revive(source), URI.revive(target), opts.overwrite);
}
async $copy(source: UriComponents, target: UriComponents, opts: FileOverwriteOptions): Promise<void> {
this._fileService.copy(URI.revive(source), URI.revive(target), opts.overwrite);
await this._fileService.copy(URI.revive(source), URI.revive(target), opts.overwrite);
}
async $mkdir(uri: UriComponents): Promise<void> {
this._fileService.createFolder(URI.revive(uri));
await this._fileService.createFolder(URI.revive(uri));
}
async $delete(uri: UriComponents, opts: FileDeleteOptions): Promise<void> {
this._fileService.del(URI.revive(uri), opts);
await this._fileService.del(URI.revive(uri), opts);
}
}
......
......@@ -124,7 +124,7 @@ class ConsumerFileSystem implements vscode.FileSystem {
return this._proxy.$writeFile(uri, VSBuffer.wrap(content), options);
}
delete(uri: vscode.Uri, options: { recursive: boolean; } = { recursive: false }): Promise<void> {
return this._proxy.$delete(uri, { ...options, useTrash: true }); //todo@joh useTrash
return this._proxy.$delete(uri, { ...options, useTrash: false }); //todo@joh useTrash
}
rename(oldUri: vscode.Uri, newUri: vscode.Uri, options: { overwrite: boolean; } = { overwrite: false }): Promise<void> {
return this._proxy.$rename(oldUri, newUri, options);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册