added a shortcut to open the loging app

This commit is contained in:
Pierre committed 2026-10-04 14:06:31 +02:00
1 parent 5614ad049d
commit f57e23d76a
7 files changed
+31 -5

No files matched your search

+9
View File
@@ -161,6 +161,15 @@
const last = lastLogs.get(app);
let preview;
label.append(node('span', app, 'name'));
const appLink = node('a', '↗', 'app-link');
appLink.href = '#';
appLink.title = `Open ${app} definition`;
appLink.setAttribute('aria-label', `Open ${app} definition`);
appLink.onclick = event => {
event.preventDefault(); event.stopPropagation();
vscode.postMessage({ type: 'app', app });
};
label.append(appLink);
if (last) {
const line = node('span', undefined, `last-log log-message level-${normalLevel(last)}`);
const age = node('span', shortTimeSince(last.time), 'last-age');