diff --git a/packages/filesystem/src/browser/download/file-download-service.ts b/packages/filesystem/src/browser/download/file-download-service.ts index 2d8b72afdf7f1..6afa9a9b46c73 100644 --- a/packages/filesystem/src/browser/download/file-download-service.ts +++ b/packages/filesystem/src/browser/download/file-download-service.ts @@ -25,7 +25,6 @@ import { FileDownloadData } from '../../common/download/file-download-data'; import { Deferred } from '@theia/core/lib/common/promise-util'; import { MessageService } from '@theia/core/lib/common/message-service'; import { addClipboardListener } from '@theia/core/lib/browser/widgets'; -import { DisposableCollection } from '@theia/core/lib/common'; @injectable() export class FileDownloadService { @@ -47,8 +46,6 @@ export class FileDownloadService { @inject(MessageService) protected readonly messageService: MessageService; - protected readonly toDispose = new DisposableCollection(); - protected uploadForm: { target: HTMLInputElement file: HTMLInputElement @@ -203,7 +200,7 @@ export class FileDownloadService { } } - protected forceDownload(id: string, title: string): void { + protected async forceDownload(id: string, title: string): Promise { let url: string | undefined; try { if (this.anchor === undefined) {