extHostDownload isn't main thread addressable

This commit is contained in:
Johannes Rieken
2019-08-08 10:54:14 +02:00
parent 0920cd6ecb
commit 6e9e6e912a
3 changed files with 12 additions and 8 deletions

View File

@@ -13,7 +13,14 @@ import { URI } from 'vs/base/common/uri';
export class ExtHostDownloadService extends Disposable {
constructor(
static register(
proxy: MainThreadDownloadServiceShape,
commands: ExtHostCommands
) {
return new ExtHostDownloadService(proxy, commands);
}
private constructor(
proxy: MainThreadDownloadServiceShape,
commands: ExtHostCommands
) {
@@ -24,5 +31,4 @@ export class ExtHostDownloadService extends Disposable {
return location;
});
}
}
}