mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 21:39:43 +00:00
enter workspace - result can be null if operation permitted
This commit is contained in:
parent
24b15afde4
commit
001e6087ff
|
@ -74,9 +74,11 @@ export class WindowsService implements IWindowsService {
|
|||
return this.channel.call('closeWorkspace', windowId);
|
||||
}
|
||||
|
||||
enterWorkspace(windowId: number, path: URI): Promise<IEnterWorkspaceResult> {
|
||||
enterWorkspace(windowId: number, path: URI): Promise<IEnterWorkspaceResult | undefined> {
|
||||
return this.channel.call('enterWorkspace', [windowId, path]).then((result: IEnterWorkspaceResult) => {
|
||||
result.workspace = reviveWorkspaceIdentifier(result.workspace);
|
||||
if (result) {
|
||||
result.workspace = reviveWorkspaceIdentifier(result.workspace);
|
||||
}
|
||||
return result;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue