提交 1047679b 编写于 作者: B Benjamin Pasero

Search files by name does not work (fix #99075)

上级 1a738653
......@@ -32,6 +32,7 @@ import { addDisposableListener, EventType, EventHelper } from 'vs/base/browser/d
import { IWorkspacesService } from 'vs/platform/workspaces/common/workspaces';
import { Schemas } from 'vs/base/common/network';
import { isEqual } from 'vs/base/common/resources';
import { onUnexpectedError } from 'vs/base/common/errors';
/**
* Stores the selection & view state of an editor and allows to compare it to other selection states.
......@@ -825,7 +826,11 @@ export class HistoryService extends Disposable implements IHistoryService {
const entriesRaw = this.storageService.get(HistoryService.HISTORY_STORAGE_KEY, StorageScope.WORKSPACE);
if (entriesRaw) {
entries = coalesce(JSON.parse(entriesRaw));
try {
entries = coalesce(JSON.parse(entriesRaw));
} catch (error) {
onUnexpectedError(error); // https://github.com/microsoft/vscode/issues/99075
}
}
const registry = Registry.as<IEditorInputFactoryRegistry>(EditorExtensions.EditorInputFactories);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册