提交 3e1cbe12 编写于 作者: J Johannes Rieken

workspace.rootPath should be undefined when no folder is open, not null. fixes #690

上级 c65770e8
......@@ -189,7 +189,7 @@ export class PluginHostAPIImplementation {
};
//
const workspacePath = contextService.getWorkspace() && contextService.getWorkspace().resource.fsPath;
const workspacePath = contextService.getWorkspace() ? contextService.getWorkspace().resource.fsPath : undefined;
const pluginHostFileSystemEvent = threadService.getRemotable(PluginHostFileSystemEventService);
const pluginHostWorkspace = new PluginHostWorkspace(this._threadService, workspacePath);
const pluginHostDocuments = this._threadService.getRemotable(PluginHostModelService);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册