mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 13:43:07 +00:00
enter workspace - result can be null if operation permitted
This commit is contained in:
parent
24b15afde4
commit
001e6087ff
1 changed files with 4 additions and 2 deletions
|
@ -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) => {
|
||||
if (result) {
|
||||
result.workspace = reviveWorkspaceIdentifier(result.workspace);
|
||||
}
|
||||
return result;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue