mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-01 04:50:08 +01:00
1a391ced25
Remote projects sent every completion request as `INVOKED`: `GetCompletions` had no trigger fields, so a server never saw the trigger character typed on a remote client. `GetCompletions` now carries the trigger kind and character, and the host checks the character against the trigger characters of the server that answers, as local projects already do. Requests from older peers without `server_id` first resolve the first capable server, so they get the same check. Reusing an open complete menu did not cancel a refresh that was still in flight. After a quick backspace and retype, that refresh replaced the menu with items filtered for the shorter query. The reuse path now drops pending completion tasks. Refreshes of incomplete lists still send `INVOKED`, not `TriggerForIncompleteCompletions`. https://github.com/zed-industries/zed/pull/21755 removed the latter after vtsls returned wrong edits for it. vtsls answers it from one per-process cache without document or position checks, and the spec describes typing an identifier as `Invoked`. Release Notes: - Fixed completion trigger characters being lost in remote projects, and a stale completion list appearing after quickly deleting and retyping a character