mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
workspace.rootPath should be undefined when no folder is open, not null. fixes #690
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user