Repository navigation
Fix language client startup with a log output channel - #286
Aiday Marlen Kyzy (aiday-mar) merged 4 commits into
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The change is small, directly addresses the reported startup failure, and is compatible with the extension’s declared VS Code engine version.
Pull request overview
Updates the extension’s output channel to a VS Code log output channel so [email protected] can call log methods (e.g., .error()) during startup without crashing.
Changes:
- Change the stored channel type to
vscode.LogOutputChannel. - Create the output channel using
vscode.window.createOutputChannel(..., { log: true })to satisfy the language client’s requirements.
File summaries
| File | Description |
|---|---|
| client/src/extension.ts | Switches the extension’s output channel to a LogOutputChannel so the language client can log errors during startup. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
|
Fixed the output channel lifecycle issue by registering it in Validated with |
|
Actually why did you delete the client options? I believe we still need them |
Head branch was pushed to by a user without write access
It looked like the suggested change by Copilot accidentally removed that line while adding the output-channel registration, and it was restored in commit 277bf62. I initially pushed that commit to my fork’s main, and I've now updated the PR branch to include it as well. |
There was a problem hiding this comment.
🟢 Approval recommended
The change is minimal, aligns with the stated vscode-languageclient 10.1.0 requirement, and adds proper disposal without introducing additional behavioral risk.
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
@microsoft-github-policy-service agree |
aaaa080 to
205cc2d
Compare
The client package uses `vscode-languageclient` 10.1.0. Use Node16 module and module resolution settings so TypeScript resolves that package's declarations consistently and checks the `LogOutputChannel` API used by this fix. This is a client-only compiler change; the root package's existing `vscode-languageclient` 9.0.1 dependency is unchanged.
205cc2d to
9516e62
Compare
|
Thanks for the reviews. All checks are passing, but I don’t have permissions to merge. Could someone with access merge this when convenient? It looks like the auto-merge Aiday Marlen Kyzy (@aiday-mar) set early on became disabled on a push. |
|
Thank you for the PR |
Fixes #276
Fixes #284
Summary
vscode-languageclient10.1.0 requiresLanguageClientOptions.outputChannelto be avscode.LogOutputChannel. The extension currently supplies a plain output channel, causing language-client startup to fail when it invokes log methods such as.error().This change creates the channel with
{ log: true }and declares the stored channel asvscode.LogOutputChannel. The client TypeScript configuration now uses Node16 module resolution so thevscode-languageclientv10 package is compiled with its modern module declarations.The regression was introduced in pre-release
v1.1.2026072818whenvscode-languageclientwas upgraded to 10.1.0 by #274. Stablev1.0.8predates that dependency update.Validation
npm cinpm run compilenpm run buildnpm test(34 passed)npm run lint(passes; one existing unused-parameter warning inclient/src/waza/waza.ts:689)