Skip to content

Commit 3b395e2

Browse files
committed
1 parent cfe0125 commit 3b395e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/contrib/editSessions/browser/editSessionsViews.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ class EditSessionDataViewDataProvider implements ITreeViewDataProvider {
208208
const sessionData = await this.editSessionsStorageService.read(session.ref);
209209
const label = sessionData?.editSession.folders.map((folder) => folder.name).join(', ') ?? session.ref;
210210
const machineId = sessionData?.editSession.machine;
211-
const description = machineId === undefined ? fromNow(session.created, true) : `${fromNow(session.created, true)}\u00a0\u00a0\u2022\u00a0\u00a0${await this.editSessionsStorageService.getMachineById(machineId)}`;
211+
const machineName = machineId ? await this.editSessionsStorageService.getMachineById(machineId) : undefined;
212+
const description = machineName === undefined ? fromNow(session.created, true) : `${fromNow(session.created, true)}\u00a0\u00a0\u2022\u00a0\u00a0${machineName}`;
212213

213214
editSessions.push({
214215
handle: resource.toString(),

0 commit comments

Comments
 (0)