提交 0b30872c 编写于 作者: M Martin Aeschlimann

window reload when entering workspace

上级 d73fdb05
......@@ -239,11 +239,16 @@ export class WorkspaceEditingService implements IWorkspaceEditingService {
enterWorkspace(path: URI): Promise<void> {
// Restart extension host if first root folder changed (impact on deprecated workspace.rootPath API)
// Stop the extension host first to give extensions most time to shutdown
this.extensionService.stopExtensionHost();
let extensionHostStarted: boolean = false;
const startExtensionHost = () => {
if (this.windowService.getConfiguration().remoteAuthority) {
this.windowService.reloadWindow(); // TODO aeschli: workaround until restarting works
}
this.extensionService.startExtensionHost();
extensionHostStarted = true;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册