mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-24 16:35:55 +01:00
save untitled workspace on renderer
This commit is contained in:
@@ -32,6 +32,10 @@ export class WorkspacesChannel implements IServerChannel {
|
||||
|
||||
return this.service.createUntitledWorkspace(folders);
|
||||
}
|
||||
case 'deleteUntitledWorkspace': {
|
||||
const w: IWorkspaceIdentifier = arg;
|
||||
return this.service.deleteUntitledWorkspace({ id: w.id, configPath: URI.revive(w.configPath) });
|
||||
}
|
||||
}
|
||||
|
||||
throw new Error(`Call not found: ${command}`);
|
||||
@@ -47,4 +51,8 @@ export class WorkspacesChannelClient implements IWorkspacesService {
|
||||
createUntitledWorkspace(folders?: IWorkspaceFolderCreationData[]): Promise<IWorkspaceIdentifier> {
|
||||
return this.channel.call('createUntitledWorkspace', folders).then(reviveWorkspaceIdentifier);
|
||||
}
|
||||
|
||||
deleteUntitledWorkspace(workspaceIdentifier: IWorkspaceIdentifier): Promise<void> {
|
||||
return this.channel.call('deleteUntitledWorkspace', workspaceIdentifier);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user