提交 7693e02a 编写于 作者: B Benjamin Pasero

💄

上级 57f08aaf
......@@ -62,7 +62,7 @@ export class EditorPickerEntry extends QuickOpenEntryGroup {
}
public getResource(): URI {
return toResource(this.editor, { supportSideBySide: true, filter: 'file' });
return toResource(this.editor, { supportSideBySide: true });
}
public getAriaLabel(): string {
......
......@@ -70,7 +70,7 @@ export class EditorState {
}
}
interface ISerializedFileEditorInput {
interface ISerializedFileHistoryEntry {
resource: string;
}
......@@ -703,7 +703,7 @@ export class HistoryService extends BaseHistoryService implements IHistoryServic
return; // nothing to save because history was not used
}
const entries: ISerializedFileEditorInput[] = this.history.map(input => {
const entries: ISerializedFileHistoryEntry[] = this.history.map(input => {
if (input instanceof EditorInput) {
return void 0; // only file resource inputs are serializable currently
}
......@@ -715,7 +715,7 @@ export class HistoryService extends BaseHistoryService implements IHistoryServic
}
private loadHistory(): void {
let entries: ISerializedFileEditorInput[] = [];
let entries: ISerializedFileHistoryEntry[] = [];
const entriesRaw = this.storageService.get(HistoryService.STORAGE_KEY, StorageScope.WORKSPACE);
if (entriesRaw) {
......@@ -723,7 +723,7 @@ export class HistoryService extends BaseHistoryService implements IHistoryServic
}
this.history = entries.map(entry => {
const serializedFileInput = entry as ISerializedFileEditorInput;
const serializedFileInput = entry as ISerializedFileHistoryEntry;
if (serializedFileInput.resource) {
return { resource: URI.parse(serializedFileInput.resource) } as IResourceInput;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册