Commit 62510a4
feat(client): wire restart/showLog commands + sample-workflow F5 profile
Bring the extension up from "just a scaffold" to "F5 reaches the
upstream pygls server and surfaces real diagnostics." Three pieces:
1. src/extension.ts. The `activate` path now goes through a
buildClient -> startClient -> error-handler flow. When
`client.start()` fails (Python missing, [lsp] extra not
installed, server crash on import), the user sees a
notification carrying the underlying error message and the
install hint `pip install "pipeline-check[lsp]"`, plus an
"Open server log" button that focuses the `Pipeline-Check`
output channel. The broken client is discarded so the next
restart starts fresh.
2. Two commands. `pipelineCheck.restart` stops the running
client and re-spawns; `pipelineCheck.showLog` focuses the
output channel where the server's `window/logMessage` traffic
lands. Registered in package.json under the `Pipeline-Check`
category so the command palette groups them together.
3. A second launch profile: `Run Extension (sample workflow)`
opens `test-fixtures/sample-workflow/` as the workspace.
The fixture ships a deliberately-vulnerable GHA workflow that
should fire GHA-001 / GHA-004 / GHA-015 / GHA-016 the moment
the file opens — quickest way to confirm the client -> server
-> diagnostic-publish round-trip works end-to-end. The
fixture is .vscodeignore'd so it does not ship in the vsix.
Also lands package-lock.json (npm install pinned the dep tree)
and an expanded README "Development" section covering the two
F5 profiles plus the new commands.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6999f85 commit 62510a4
8 files changed
Lines changed: 2008 additions & 20 deletions
File tree
- .vscode
- src
- test-fixtures/sample-workflow
- .github/workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
15 | 28 | | |
16 | 29 | | |
17 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
44 | 52 | | |
45 | 53 | | |
46 | 54 | | |
| |||
0 commit comments