mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-24 00:05:46 +01:00
delete untitled workspace on enter
This commit is contained in:
@@ -32,11 +32,6 @@ export class WorkspacesChannel implements IServerChannel {
|
||||
|
||||
return this.service.createUntitledWorkspace(folders);
|
||||
}
|
||||
case 'deleteIfUntitledWorkspace': {
|
||||
const rawWorkspace: IWorkspaceIdentifier = arg;
|
||||
// TODO aeschli: resolve IWorkspaceIdentifier when switching to URI
|
||||
return this.service.deleteIfUntitledWorkspace(rawWorkspace);
|
||||
}
|
||||
}
|
||||
|
||||
throw new Error(`Call not found: ${command}`);
|
||||
@@ -52,8 +47,4 @@ export class WorkspacesChannelClient implements IWorkspacesService {
|
||||
createUntitledWorkspace(folders?: IWorkspaceFolderCreationData[]): Promise<IWorkspaceIdentifier> {
|
||||
return this.channel.call('createUntitledWorkspace', folders);
|
||||
}
|
||||
|
||||
deleteIfUntitledWorkspace(workspace: IWorkspaceIdentifier): Promise<void> {
|
||||
return this.channel.call('deleteIfUntitledWorkspace', workspace);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user