chore: allow multiple tabs (#129)

This commit is contained in:
Pavel Feldman 2025-04-03 19:24:17 -07:00 committed by GitHub
parent b358e47d71
commit e36d4ea695
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 354 additions and 92 deletions

View file

@ -24,7 +24,7 @@ export const console: Resource = {
},
read: async (context, uri) => {
const messages = await context.currentPage().console();
const messages = await context.currentTab().console();
const log = messages.map(message => `[${message.type().toUpperCase()}] ${message.text()}`).join('\n');
return [{
uri,