VS Code / VSCodium: the extension's first version
A client of `lembas serve --stdio`, in vscode/: plain JavaScript, no dependencies, no build. scripts/package-vscode.sh writes the .vsix with Node alone; the version comes from VERSION. - Chat in a side bar view: transcript, mode, the session's model, Stop, new session. Approval cards are answered there; one that carries ACP diff content opens the editor's diff view before the answer. - Ask about a selection, with the editor context as _meta.lembas.editor. - Rewrite a selection through _lembas/edit: proposed changes with Accept / Reject per change and for all, and a diff beside the file. Nothing is written before it is accepted. - Autocomplete as an inline completion provider on _lembas/complete: debounced, the request before cancelled by its own id, a cancelled or stale answer shown as nothing. No model chosen: said once, with a button that opens the picker. - The two model settings through _lembas/editor/settings, and a quick switch for the window that is saved nowhere. - Files the agent shows (_lembas/show, _lembas/show/read): pictures in the chat, anything else a line with Open, under a size limit. - fs/read_text_file answered from the open document. Model output is untrusted: the extension's own Markdown reader makes a tree of plain objects and the page builds elements and text from it, under a Content-Security-Policy with one nonce'd script. Tests (scripts/test-vscode.sh, node --test): the modules in src/ against a stand-in agent, the package's structure, and extension.js against an in-memory stand-in for the editor's API. Nothing was run inside VS Code. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
34 files changed
+6510
-2
No files matched your search
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# Builds the VS Code / VSCodium extension as dist/llembas-<version>.vsix. Needs only Node 18 or
|
||||
# newer: no packaging tool, no npm install. The version is the repository's VERSION file.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
exec node vscode/tools/vsix.js "$@"
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# The extension's tests: the parts that need no editor, against a stand-in agent.
|
||||
# Needs Node 18 or newer and python3. Nothing here starts VS Code.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
exec node --test vscode/tests/*.test.js
|
||||
Reference in new issue
Block a user