Skip to content

Remove ":" from completion trigger characters - #62

Merged
kunlinglio merged 1 commit into
masterfrom
dev
Oct 17, 2026
Merged

kunlinglio merged 1 commit into
masterfrom
dev

Conversation

@kunlinglio

Copy link
Copy Markdown
Owner

Fixes #61

Typing : in Python (e.g. for i in range(5):) opens the completion menu even though there is no path to complete.

That's because in LSP, : was advertised as a completion trigger character in initialize, originally for Windows drive-letter paths like C:\.... Trigger characters are global across languages, so : fired a completion request every time it was typed.

So, I removed : from the completion trigger characters.

As the result, Windows drive-letter paths no longer auto-trigger on the : itself, but they still trigger once \ or / is typed, so drive-path completion keeps working.

@kunlinglio
kunlinglio merged commit 95a6e8d into master Oct 17, 2026
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.

path-server-lsp triggers unwanted autocomplete after : in Python

1 participant