-
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.SuggestedIssues that may be good for new contributors looking for work to do.Issues that may be good for new contributors looking for work to do.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.
Milestone
Description
If we don't check a package's parse errors before formatting, we may encounter a case where we delete code on format.
Repro:
package foo
func _() {
f(),
f()
}
To handle this, we check the parse errors before formatting. However, we should confirm that these errors belong to the file in question and lie within the specified range before failing.
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.SuggestedIssues that may be good for new contributors looking for work to do.Issues that may be good for new contributors looking for work to do.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.