label for recent

This commit is contained in:
Martin Aeschlimann
2019-03-07 22:52:48 +01:00
parent c7622aa809
commit ff8afd07b8
19 changed files with 403 additions and 322 deletions
@@ -37,6 +37,9 @@ export class WorkspacesChannel implements IServerChannel {
const w: IWorkspaceIdentifier = arg;
return this.service.deleteUntitledWorkspace({ id: w.id, configPath: URI.revive(w.configPath) });
}
case 'getWorkspaceIdentifier': {
return this.service.getWorkspaceIdentifier(URI.revive(arg));
}
}
throw new Error(`Call not found: ${command}`);
@@ -56,4 +59,8 @@ export class WorkspacesChannelClient implements IWorkspacesService {
deleteUntitledWorkspace(workspaceIdentifier: IWorkspaceIdentifier): Promise<void> {
return this.channel.call('deleteUntitledWorkspace', workspaceIdentifier);
}
getWorkspaceIdentifier(configPath: URI): Promise<IWorkspaceIdentifier> {
return this.channel.call('getWorkspaceIdentifier', configPath);
}
}