Skip to content

vscode upgrade - #460

Open
prozacchiwawa wants to merge 11 commits into
mainfrom
20260625-update-vscode
Open

vscode upgrade#460
prozacchiwawa wants to merge 11 commits into
mainfrom
20260625-update-vscode

Conversation

@prozacchiwawa

@prozacchiwawa prozacchiwawa commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Note

Medium Risk
Language client v10 and a custom LogOutputChannel adapter touch core LSP startup/logging; the higher minimum VS Code version drops support for older editors.

Overview
Raises the extension’s minimum VS Code version to ^1.110.0 and bumps vscode-languageclient to ^10.0.1 (with matching @types/vscode and lockfile updates for the LSP protocol stack).

LogOutputChannelWrapper in lsp.ts adapts a plain OutputChannel to vscode.LogOutputChannel (log levels, timestamps, vscode.env.onDidChangeLogLevel) so the language client’s outputChannel option stays compatible with v10.

Build/test plumbing: tsconfig.json switches to module / moduleResolution node16, the Mocha test runner uses a default import, and the code-server test image moves to 4.125.0.

Reviewed by Cursor Bugbot for commit 027a714. Bugbot is set up for automated code reviews on this repo. Configure here.

@socket-security

socket-security Bot commented Jun 25, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​vscode-languageclient@​9.0.1 ⏵ 10.0.1100 +210080 +196100
Updatednpm/​@​types/​vscode@​1.97.0 ⏵ 1.125.010010080 +193 +2100

View full report

Quexington
Quexington previously approved these changes Jun 25, 2026
Comment thread test/Dockerfile Outdated
Comment thread src/lsp.ts
Comment thread src/lsp.ts
error(message: string, ...args: any[]) {
this.outputChannel.appendLine(message);
this.outputChannel.appendLine(JSON.stringify(args));
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Log wrapper ignores log level

Medium Severity

The wrapper’s trace, debug, info, warn, and error methods always append to the output channel and never honor logLevel or VS Code’s log-level filtering. logLevel stays fixed at 0 and onDidChangeLogLevel is never fired, so verbosity cannot match the editor’s log settings.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 0d3fbe6. Configure here.

prozacchiwawa and others added 3 commits June 29, 2026 12:07
Implement LogOutputChannelWrapper to match native VS Code log output channels:
- Format lines as YYYY-MM-DD HH:mm:ss.SSS [level] message
- Respect log level filtering via env.logLevel and onDidChangeLogLevel
- Route append/appendLine through info-level logging like the real API
- Implement show, hide, replace, clear, and dispose by delegating to the
  underlying OutputChannel
- Format message arguments like VS Code (JSON for objects, stack for errors)

Co-authored-by: arty <prozacchiwawa@users.noreply.github.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 027a714. Configure here.

Comment thread src/lsp.ts

appendLine(value: string): void {
this.append(value);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Append breaks output channel contract

Medium Severity

LogOutputChannelWrapper routes append and appendLine through info(), so each write is subject to canLog at info level and gets a timestamp, level tag, and forced newline. That differs from a plain OutputChannel (and from native LogOutputChannel legacy writes), so vscode-languageclient output can disappear when the editor log level is above info or look garbled when multiple append calls should form one line.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 027a714. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants