save untitled workspace on renderer

This commit is contained in:
Martin Aeschlimann
2019-02-27 14:41:54 +01:00
parent 5360e0350d
commit 5af1f510cc
12 changed files with 208 additions and 239 deletions
@@ -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);
}
}