help wanted
仓库指标
- 星标
- (21,417 个星标)
- PR 合并指标
- (平均合并 10天 19小时) (30 天内合并 69 个 PR)
描述
How to reproduce:
type Foo {
Foo(bar: List(String))
}
pub fn main() -> Nil {
let foo_list = [Foo(bar: ["hello"])]
case list.first(foo_list) {
Ok(foo) -> foo. // auto complete doesn't show
Error(_) -> io.println("world")
}
}
When enclosing the statement within a block, the auto complete showed up.
type Foo {
Foo(bar: List(String))
}
pub fn main() -> Nil {
let foo_list = [Foo(bar: ["hello"])]
case list.first(foo_list) {
Ok(foo) -> {foo.} // auto complete showed up
Error(_) -> io.println("world")
}
}
But if you type one letter, the auto complete showed up even without block.
type Foo {
Foo(bar: List(String))
}
pub fn main() -> Nil {
let foo_list = [Foo(bar: ["hello"])]
case list.first(foo_list) {
Ok(foo) -> foo.b // auto complete showed up
Error(_) -> io.println("world")
}
}
Gleam version: v1.14