gleam-lang/gleam

Qualify or import generated variants

Closed

#5,735 创建于 2026年5月19日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Rust (21,417 star) (960 fork)batch import
help wanted

描述

When you use the generate variant LS action for a type that lives in another module:

Event(..) -> [PlaceIn(SmokedPile)]
// Use generate variant here ^

If PlaceIn is in another module, the variant is generated correctly but it's not imported by the currrent module, so you need to manually import it.

贡献者指南