Commit 5974258
committed
gopls/internal/lsp: clear vuln diagnostics on config changes
Clear vuln diagnostics before diagnosing views, during handling of
config changes. This should mostly avoid the symptoms of
golang/go#60465, but as noted in the code is not a proper fix.
Unfortunately there is no way to write a test for this behavior that is
not flaky, because the operation itself is flaky. I have scheduled a
proper fix for [email protected].
Fixes golang/go#60465
Change-Id: If41f5420c24dfa15a7d83e89988488619a2dd857
Reviewed-on: https://go-review.googlesource.com/c/tools/+/498560
gopls-CI: kokoro <[email protected]>
Run-TryBot: Robert Findley <[email protected]>
Reviewed-by: Alan Donovan <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>1 parent f3faea1 commit 5974258
2 files changed
+25
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2156 | 2156 | | |
2157 | 2157 | | |
2158 | 2158 | | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
2159 | 2163 | | |
2160 | 2164 | | |
2161 | 2165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
68 | 88 | | |
69 | 89 | | |
70 | 90 | | |
| |||
0 commit comments