zed icon indicating copy to clipboard operation
zed copied to clipboard

TypeScript: Autocomplete for optional chaining does not function properly

Open lixiaoyan opened this issue 9 months ago • 4 comments

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

lixiaoyan avatar May 29 '25 06:05 lixiaoyan

Some mcp is wrong. sorry.

zereight avatar May 29 '25 13:05 zereight

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.

github-actions[bot] avatar Aug 09 '25 14:08 github-actions[bot]