Skip to content

Commit

Permalink
fix: uninstall extension fail in electron
Browse files Browse the repository at this point in the history
  • Loading branch information
yantze committed Mar 23, 2023
1 parent b4daa97 commit cf6ff94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/file-service/src/browser/file-service-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export class FileServiceClient implements IFileServiceClient {
}

async delete(uriString: string, options?: FileDeleteOptions) {
if (this.appConfig.isElectronRenderer && options && options.moveToTrash) {
if (this.appConfig.isElectronRenderer) {
const uri = new URI(uriString);
if (uri.scheme === Schemes.file) {
return (this.injector.get(IElectronMainUIService) as IElectronMainUIService).moveToTrash(uri.codeUri.fsPath);
Expand Down

0 comments on commit cf6ff94

Please sign in to comment.