Skip to content

Commit 1303984

Browse files
authored
Add tarballProxyEndpoints workbench option (microsoft#138283)
1 parent bbede2d commit 1303984

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/vs/workbench/workbench.web.api.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,12 @@ interface IWorkbenchConstructionOptions {
412412
*/
413413
readonly codeExchangeProxyEndpoints?: { [providerId: string]: string }
414414

415+
/**
416+
* [TEMPORARY]: This will be removed soon.
417+
* Endpoints to be used for proxying repository tarball download calls in the browser.
418+
*/
419+
readonly _tarballProxyEndpoints?: { [providerId: string]: string }
420+
415421
//#endregion
416422

417423

@@ -674,6 +680,8 @@ function create(domElement: HTMLElement, options: IWorkbenchConstructionOptions)
674680
}
675681
}
676682

683+
CommandsRegistry.registerCommand('_workbench.getTarballProxyEndpoints', () => (options._tarballProxyEndpoints ?? {}));
684+
677685
// Startup workbench and resolve waiters
678686
let instantiatedWorkbench: IWorkbench | undefined = undefined;
679687
main(domElement, options).then(workbench => {

0 commit comments

Comments
 (0)