-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.
Milestone
Description
A defer
or go
statement is expected to be followed by an *ast.CallExpr
. If they are not, the parser treats them as *ast.BadExpr
s, causing completion to fail. We need to handle this particular case.
Repro:
package main
import "fmt"
func main() {
defer fmt.<>
}
Triggering a completion here will result in lexical completions, rather than the expected selector completions for package "fmt".
megakoresh
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.