提交 acbe81b9 编写于 作者: R Rob Lourens

Settings editor - fix starting when no cached state exists

上级 5cee349b
......@@ -223,7 +223,7 @@ export class SettingsEditor2 extends BaseEditor {
private restoreCachedState(): void {
const cachedState = this.editorMemento.loadState(this.group, this.input);
if (typeof cachedState.target === 'object') {
if (cachedState && typeof cachedState.target === 'object') {
cachedState.target = URI.revive(cachedState.target);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册