added a shortcut to open the loging app
This commit is contained in:
1 parent
5614ad049d
commit
f57e23d76a
7 files changed
+31
-5
No files matched your search
@@ -13,3 +13,4 @@
|
||||
summary{display:grid;grid-template-columns:auto minmax(0,1fr) repeat(3,max-content);align-items:center;column-gap:10px;row-gap:5px}
|
||||
summary .last-log{grid-column:1/-1;min-width:0}
|
||||
.rows{max-height:min(45vh,420px);overflow-y:auto;scrollbar-gutter:stable;overflow-anchor:none}
|
||||
.app-label{flex-direction:row;align-items:center;gap:6px}.app-label .name{min-width:0}.app-link{color:var(--accent);font-size:13px;line-height:1;text-decoration:none;white-space:nowrap}.app-link:hover{text-decoration:underline}.app-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
|
||||
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user