zed
zed copied to clipboard
TypeScript: Autocomplete for optional chaining does not function properly
Summary
Description
let x: string | undefined;
// type `x.tost` and autocomplete by typing tab or enter
// -> current behavior: `x?.toString()tost`
// -> expected behavior: `x?.toString()`
let y: string;
// type `y.tost` and autocomplete by typing tab or enter
// -> current&expected behavior: `y.toString()`
https://github.com/user-attachments/assets/f949378f-3a6a-4050-9bd8-16ae55511600
Zed Version and System Specs
Zed: v0.189.0 (Zed Preview) OS: macOS 15.5.0 Memory: 48 GiB Architecture: aarch64
Some mcp is wrong. sorry.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.