113
114
add(url: string, title: string, faviconHash: string | undefined, userInitiated: boolean): IBrowserHistoryEntry {
116
? { id: this._nextId++, url, time: Date.now(), title, icon: faviconHash, explicit: true }
117
>
: { id: this._nextId++, url, time: Date.now(), title, icon: faviconHash };
browserHistory.ts
118
>
this._items.push(entry);
119
>
this._evictIfNeeded();
120
>
this._onDidChange.fire();
121
>
return entry;
122
>
}
123
124
update(id: number, patch: { url?: string; title?: string; faviconHash?: string | null }): boolean {