Commit de19c49
Qa 139 vscode smoke (#320)
* test(vscode): in-editor smoke harness via @vscode/test-electron (Closes #139)
Adds editors/vscode/test/ — a headless extension-host runner that loads
the compiled out/extension.cjs in a real VS Code and asserts the four
acceptance bullets from #139:
1. activation without error
2. all five affinescript.* commands register and invoke
3. restartLsp cycles cleanly (back-to-back invocations resolve)
4. deactivate resolves without throwing
Wires a vscode-smoke job into .github/workflows/ci.yml (Node 20 +
xvfb-run + `npm test`). The compiled extension.cjs is already checked
in (#35 Phase 3), so the smoke job needs only the Node-side test deps —
not the OCaml toolchain.
The Node-only runner is recorded as the second Runtime Exemption in
.claude/CLAUDE.md, paralleling the existing affine-vscode-publish.yml
carve-out (#104). Scope is strictly editors/vscode/test/; no production
code adopts Node.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(vscode): document #139 smoke harness in README + CAPABILITY-MATRIX
- editors/vscode/README.md gains a "Smoke testing the compiled extension"
subsection under Contributing: run instructions, what the harness
asserts, the LSP-attach env-var escape hatch, pointer to the
Runtime Exemption in CLAUDE.md.
- docs/CAPABILITY-MATRIX.adoc Node-CJS row gains the live-host smoke
status (was missing — the row only attested the .cjs compile path).
Refs #139, PR #317.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 65fa5ef commit de19c49
2 files changed
Lines changed: 38 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
152 | 156 | | |
153 | 157 | | |
154 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
115 | 148 | | |
116 | 149 | | |
117 | 150 | | |
| |||
0 commit comments