Skip to content

fix(completion): respect negotiated position encoding - #2011

Open
rgrinberg wants to merge 1 commit into
masterfrom
push-yltuqlssvsxl
Open

fix(completion): respect negotiated position encoding#2011
rgrinberg wants to merge 1 commit into
masterfrom
push-yltuqlssvsxl

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

Translate completion request positions through document offsets before querying Merlin, and construct completion, resolve, and construct-command ranges through document-bound UTF-8 span conversion.

This replaces #1889 with a narrower implementation that keeps negotiated encoding out of completion feature code. Existing Unicode completion and resolve snapshots expose the corrected protocol ranges.

Translate completion requests through document offsets and construct edit ranges in the encoding negotiated with the client.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg
rgrinberg force-pushed the push-yltuqlssvsxl branch from ced31b6 to c1422b5 Compare July 31, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant