提交 72e79483 编写于 作者: S Sandeep Somavarapu

Fix when there is no recently opened state

上级 df56b232
......@@ -244,7 +244,7 @@ export class HistoryMainService implements IHistoryMainService {
}
private getRecentlyOpenedFromStorage(): IRecentlyOpened {
const storedRecents: ISerializedRecentlyOpened = this.stateService.getItem<ISerializedRecentlyOpened>(HistoryMainService.recentlyOpenedStorageKey);
const storedRecents: ISerializedRecentlyOpened = this.stateService.getItem<ISerializedRecentlyOpened>(HistoryMainService.recentlyOpenedStorageKey) || { workspaces: [], files: [] };
const result: IRecentlyOpened = { workspaces: [], files: storedRecents.files };
for (const workspace of storedRecents.workspaces) {
if (typeof workspace === 'string') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册