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.

貢獻者指南

Qualify or import generated variants · gleam-lang/gleam#5735 | Good First Issue