Skip to content

fix(completion): preserve dotted operators - #1890

Merged
rgrinberg merged 1 commit into
masterfrom
push-qpwkxnmtqowx
Jul 31, 2026
Merged

fix(completion): preserve dotted operators#1890
rgrinberg merged 1 commit into
masterfrom
push-qpwkxnmtqowx

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

Short completion-prefix reconstruction treats dotted operators like module paths and drops them, while resolve scans only identifier suffixes. Distinguish path-like prefixes from operators and scan operator suffixes so dotted operator completions retain their documentation.

@rgrinberg
rgrinberg force-pushed the push-qpwkxnmtqowx branch 2 times, most recently from a703395 to 2d1868f Compare July 26, 2026 05:45
@rgrinberg
rgrinberg force-pushed the push-uquvzztvtmyp branch from 53510ba to dc5dec7 Compare July 26, 2026 05:45
@rgrinberg
rgrinberg force-pushed the push-qpwkxnmtqowx branch from 2d1868f to 854ec0b Compare July 26, 2026 09:36
@rgrinberg
rgrinberg changed the base branch from push-uquvzztvtmyp to master July 26, 2026 09:36
@rgrinberg
rgrinberg force-pushed the push-qpwkxnmtqowx branch 4 times, most recently from 61599b8 to 0c6ad9a Compare July 26, 2026 11:40
Do not shorten an operator-looking completion prefix as though dots
separated a module path. Scan operator suffixes with the operator
character set as well, so resolve requests reconstruct dotted operators
and return their documentation.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg
rgrinberg force-pushed the push-qpwkxnmtqowx branch from 0c6ad9a to fe00ad7 Compare July 31, 2026 22:17
@rgrinberg
rgrinberg merged commit 4b48362 into master Jul 31, 2026
3 of 5 checks passed
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.

1 participant