diff --git a/vscode-appdaemon/AGENTS.md b/vscode-appdaemon/AGENTS.md new file mode 100644 index 0000000..e5a62a8 --- /dev/null +++ b/vscode-appdaemon/AGENTS.md @@ -0,0 +1,25 @@ +# VS Code extension instructions + +## VS Code extension + +After every change to this extension, complete the update by compiling, +packaging, and installing the extension in the connected VS Code environment. +This includes changes limited to the Log Explorer HTML, CSS, or JavaScript. + +- Keep the current extension version unless the user explicitly requests a + version change. Do not bump `package.json` or `package-lock.json` automatically. +- From this directory, run `npm run compile` and the checks appropriate to + the change. Report any existing test failures separately. +- Package with `vsce package --out vscode-appdaemon-.vsix`, + using the installed or cached `@vscode/vsce` CLI when available. Overwrite the + existing VSIX for that version; never pass a version increment to `vsce`. +- Install that exact VSIX using + `code --install-extension ./vscode-appdaemon-.vsix --force`. +- Confirm the installed version with `code --list-extensions --show-versions`. + When possible, verify the installed changed files match the packaged files. +- Tell the user to reload the VS Code window to activate the update. If the + connected CLI is unavailable or installation fails, report that limitation + clearly and provide the generated VSIX path; do not claim it was installed. + +The user's request authorizes this routine local build and installation after +extension edits. Do not ask for additional conversational confirmation. diff --git a/vscode-appdaemon/media/logExplorer.css b/vscode-appdaemon/media/logExplorer.css index 7ed7e7d..8896e50 100644 --- a/vscode-appdaemon/media/logExplorer.css +++ b/vscode-appdaemon/media/logExplorer.css @@ -14,3 +14,14 @@ summary{display:grid;grid-template-columns:auto minmax(0,1fr) repeat(3,max-conte 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} + +/* Keep severity counts distinct from the currently selected filter. */ +#error-count::before,#warning-count::before{content:"";display:inline-block;width:1.2em} +#error-count[aria-pressed="true"],#warning-count[aria-pressed="true"]{ + color:var(--vscode-button-foreground,#fff); + background:var(--vscode-button-background,#0e639c); + border-color:var(--vscode-contrastActiveBorder,var(--accent)); + box-shadow:inset 0 2px 4px rgba(0,0,0,.35); +} +#error-count[aria-pressed="true"]::before,#warning-count[aria-pressed="true"]::before{content:"✓"} +#error-count[aria-pressed="true"]:hover,#warning-count[aria-pressed="true"]:hover{background:var(--vscode-button-hoverBackground,#1177bb)} diff --git a/vscode-appdaemon/media/logExplorer.html b/vscode-appdaemon/media/logExplorer.html index 00a5fe3..bfc344a 100644 --- a/vscode-appdaemon/media/logExplorer.html +++ b/vscode-appdaemon/media/logExplorer.html @@ -3,7 +3,7 @@ AppDaemon · Logs -

AppDaemon Logs

Reading logs…

+

AppDaemon Logs

Reading logs…

Applications

Log details

Select a log to view its details.

The base AppDaemon log format does not include causal links.

diff --git a/vscode-appdaemon/vscode-appdaemon-0.2.0.vsix b/vscode-appdaemon/vscode-appdaemon-0.2.0.vsix index 6575559..a033bcc 100644 Binary files a/vscode-appdaemon/vscode-appdaemon-0.2.0.vsix and b/vscode-appdaemon/vscode-appdaemon-0.2.0.vsix differ