Revert async history update and number of history items

The async history issue was too annoying, and the number of history
items being above 50 meant that it was too slow.
This commit is contained in:
Oliver Blanthorn 2017-11-25 23:26:11 +00:00
parent 347c1f5d7a
commit 9e2c21123f
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ async function currentWindowTabs(): Promise<browser.tabs.Tab[]> {
}
async function history(): Promise<browser.history.HistoryItem[]> {
return await browser.history.search({text:"",maxResults:100,startTime:0})
return await browser.history.search({text:"",maxResults:50,startTime:0})
}
async function allWindowTabs(): Promise<browser.tabs.Tab[]> {
let allTabs: browser.tabs.Tab[] = []

View file

@ -368,7 +368,7 @@ export class HistoryCompletionSource extends CompletionSourceFuse {
private async updateOptions(exstr?: string) {
/* console.log('updateOptions', this.optionContainer) */
// this sleep stops input from being blocked, but also breaks :open until something is typed
await sleep(0)
// await sleep(0)
const history: browser.history.HistoryItem[] =
await Messaging.message("commandline_background", "history")