369
370
export function toStoreData(recents: IRecentlyOpened): RecentlyOpenedStorageData {
371
>
const serialized: ISerializedRecentlyOpened = { entries: [] };
workspaces.ts
372
>
373
>
const storeLabel = (label: string | undefined, uri: URI) => {
374
>
// Only store the label if it is provided
375
>
// and only if it differs from the path
376
>
// This gives us a chance to render the
377
>
// path better, e.g. use `~` for home.
378
>
return label && label !== uri.fsPath && label !== uri.path;
379
>
};
380
>
381
>
for (const recent of recents.workspaces) {
382
if (isRecentFolder(recent)) {
383
serialized.entries.push({