Skip to content

Commit 7c53175

Browse files
author
Benjamin Pasero
committed
web - add todo for potentially cyclic dependency
1 parent 88e7695 commit 7c53175

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/workbench/browser/web.simpleservices.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ export class SimpleWindowService extends Disposable implements IWindowService {
412412
}
413413

414414
closeWindow(): Promise<void> {
415+
window.close();
416+
415417
return Promise.resolve();
416418
}
417419

src/vs/workbench/contrib/debug/browser/extensionHostDebugService.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient {
1717

1818
constructor(
1919
@IRemoteAgentService remoteAgentService: IRemoteAgentService,
20-
//@IWindowService windowService: IWindowService,
20+
// @IWindowService windowService: IWindowService, // TODO@weinand TODO@isidorn cyclic dependency?
2121
@IEnvironmentService environmentService: IEnvironmentService
2222
) {
2323
const connection = remoteAgentService.getConnection();
@@ -30,13 +30,11 @@ class BrowserExtensionHostDebugService extends ExtensionHostDebugChannelClient {
3030

3131
this._register(this.onReload(event => {
3232
if (environmentService.isExtensionDevelopment && environmentService.debugExtensionHost.debugId === event.sessionId) {
33-
//windowService.reloadWindow();
3433
window.location.reload();
3534
}
3635
}));
3736
this._register(this.onClose(event => {
3837
if (environmentService.isExtensionDevelopment && environmentService.debugExtensionHost.debugId === event.sessionId) {
39-
//this._windowService.closeWindow();
4038
window.close();
4139
}
4240
}));

0 commit comments

Comments
 (0)