feat(extension): add tab status to context (#599)
This commit is contained in:
@@ -276,11 +276,14 @@ export class TabsController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async summarizeTabs(): Promise<string> {
|
async summarizeTabs(): Promise<string> {
|
||||||
const summaries = [`| Tab ID | URL | Title | Current |`, `|-----|-----|-----|-----|`]
|
const summaries = [
|
||||||
|
`| Tab ID | URL | Title | Status | Current |`,
|
||||||
|
`|-----|-----|-----|-----|-----|`,
|
||||||
|
]
|
||||||
for (const tab of this.tabs) {
|
for (const tab of this.tabs) {
|
||||||
const { title, url } = await this.getTabInfo(tab.id)
|
const { title, url } = await this.getTabInfo(tab.id)
|
||||||
summaries.push(
|
summaries.push(
|
||||||
`| ${tab.id} | ${url} | ${title} | ${this.currentTabId === tab.id ? '✅' : ''} |`
|
`| ${tab.id} | ${url} | ${title} | ${tab.status ?? '-'} | ${this.currentTabId === tab.id ? '✅' : ''} |`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
if (!this.tabs.length) {
|
if (!this.tabs.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user