Open
Description
Summary
The title almost says it all...
Test snippet file
{
"thread spawn": {
"prefix": ["spawn", "tspawn"],
"body": ["thread::spawn(move || {", "\t$0", "});"],
"description": "Insert a thread::spawn call",
"requires": "std::thread",
"scope": "expr"
}
}
Steps to trigger the problem:
- Add the above Rust snippet file.
- Do a refresh start of Zed.
- Open some Rust file, and enter
spawn
. - Use zed to open the snippet file and add a period in the end of the
description
and save, e.g."Insert a thread::spawn call."
to modify the snippet file. - Go back to the Rust file, and enter
spawn
.
Actual Behavior:
In step 3, there is single spawn
in the completion menu.

It step 5, there are two spawn
s in the completion menu.

Expected Behavior:
There should be always single spawn
in the completion menu.
Zed Version and System Specs
Zed: v0.181.0 (Zed Preview)
OS: macOS 15.4.0
Memory: 64 GiB
Architecture: aarch64