You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working with gopls@master, it seems that in certain cases autocompletion stops working. In particular, variables returned from other methods or functions don't trigger completion properly.
Example:
package main
import (
"fmt"
"sync"
)
func main() {
localMap := sync.Map{}
m := getSyncMap()
// Try to complete `m` and `localMap` before this if condition:
// `m._` fails with expected selector or type assertion, found 'if' (and 1 more errors);
// `localMap._` works;
if true {
fmt.Println("true")
}
}
func getSyncMap() sync.Map {
return sync.Map{}
}
The text was updated successfully, but these errors were encountered:
Working with gopls@master, it seems that in certain cases autocompletion stops working. In particular, variables returned from other methods or functions don't trigger completion properly.
Example:
The text was updated successfully, but these errors were encountered: