Skip to content

Read positionEncodings from client capabilities - #874

Merged
Firehed merged 3 commits into
mainfrom
677/position-encodings-location
Oct 28, 2026
Merged

Firehed merged 3 commits into
mainfrom
677/position-encodings-location

Conversation

@Firehed

@Firehed Firehed commented Oct 28, 2026

Copy link
Copy Markdown
Owner

Closes #677.

LSP 3.17 defines positionEncodings under ClientCapabilities.general (Initialize Request), so it arrives at params.capabilities.general.positionEncodings. The negotiator read it from a top-level params.general, which InitializeParams does not have. The test built params in the same wrong shape, so it now supplies them as the spec defines.

No behavior change is observable yet: UTF-16 is the only supported encoding and also the fallback, so the negotiated result is the same either way until a second encoding lands (#371).

🤖 Generated with Claude Code

Firehed and others added 2 commits October 28, 2026 08:43
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.64%. Comparing base (61e093c) to head (7848c1f).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #874   +/-   ##
=========================================
  Coverage     99.64%   99.64%           
  Complexity     1966     1966           
=========================================
  Files           145      145           
  Lines          4510     4510           
=========================================
  Hits           4494     4494           
  Misses           16       16           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Firehed
Firehed marked this pull request as ready for review October 28, 2026 15:47
@Firehed
Firehed merged commit 98fd922 into main Oct 28, 2026
8 checks passed
@Firehed
Firehed deleted the 677/position-encodings-location branch October 28, 2026 15:49
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.

positionEncodings is read from the wrong place in initialize params

1 participant