Commit 78473fc
committed
gopls/internal/golang/completion: return error if file is not new
The previous logic returned (nil, nil) in that case, without
the necessary documentation, and the caller failed to handle
that case, leading to a panic.
Fixes golang/go#74057
Change-Id: I9f0c6e98457354189845954bab53a2b848401b01
Reviewed-on: https://go-review.googlesource.com/c/tools/+/680259
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>1 parent 499bea9 commit 78473fc
File tree
2 files changed
+7
-2
lines changed- gopls/internal
- golang/completion
- server
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
| |||
0 commit comments