rename IWorkspacesService.createWorkspace to createUntitledWorkspace

This commit is contained in:
Martin Aeschlimann
2019-01-25 11:45:35 +01:00
parent 50a0e6e8c1
commit dfed6e1114
7 changed files with 21 additions and 21 deletions
@@ -18,7 +18,7 @@ export class WorkspacesChannel implements IServerChannel {
call(_, command: string, arg?: any): Promise<any> {
switch (command) {
case 'createWorkspace': {
case 'createUntitledWorkspace': {
const rawFolders: IWorkspaceFolderCreationData[] = arg;
let folders: IWorkspaceFolderCreationData[] | undefined = undefined;
if (Array.isArray(rawFolders)) {
@@ -30,7 +30,7 @@ export class WorkspacesChannel implements IServerChannel {
});
}
return this.service.createWorkspace(folders);
return this.service.createUntitledWorkspace(folders);
}
}
@@ -44,7 +44,7 @@ export class WorkspacesChannelClient implements IWorkspacesService {
constructor(private channel: IChannel) { }
createWorkspace(folders?: IWorkspaceFolderCreationData[]): Promise<IWorkspaceIdentifier> {
return this.channel.call('createWorkspace', folders);
createUntitledWorkspace(folders?: IWorkspaceFolderCreationData[]): Promise<IWorkspaceIdentifier> {
return this.channel.call('createUntitledWorkspace', folders);
}
}