Commit 098fe85
committed
[gopls-release-branch.0.5] all: merge master into gopls-release-branch.0.5
23787c0 internal/lsp: fix race condition in diagnostics show message
6652d1f internal/gocommand: add a GoVersion function to avoid duplicating logic
d105bfa internal/lsp: dynamically register semantic tokens
2cbe144 internal/lsp: return code lenses in a deterministic order
eb9088f internal/lsp/source: remove workspace module from all experiments
2be66b6 cmd/toolstash: pass -S=2 when comparing toolchains
c12dc66 gopls: regtest to demonstrate gopls confused by //line directives
d49c4ed internal/lsp: do not allow non-Go files to be loaded in packages.load
226fd2f internal/lsp/fake: factor out working in a temp directory
9055098 internal/lsp/source: use 'gopls.' instead of 'gopls_'
f5c826d internal/lsp: hold notifications until gopls is initialized
b894a32 all: use explicit -mod, -modfile fields for gocommand.Invocation
0a3dccc internal/lsp/source: add a FileSource interface
b2746f1 internal/lsp: fix nil pointer exception in initialization
6003fad internal/lsp/source: delete unused Snapshot.IsSaved
a03874c internal/lsp: clean up unused parameters
2d76fa4 gopls/internal/regtest: delete OpenFileWithContent
593bd9b internal/lsp/cache: delay transitive invalidation in snapshot.clone
e52f541 internal/lsp: fix analysis in all experiments, disable unusedparams
eae18ab internal/lsp/cache: factor out guessPackagesForURI from snapshot.clone
de28cda internal/lsp: remove staticcheck and gofumpt from all experiments
a78bdc4 x/tools/go/analysis/passes/unsafeptr: report Header misuse
255fb2a x/tools/go/analysis/passes/unsafeptr: stricter reporting
a2250d3 internal/lsp: add gopls semtok command and semantic token tests
7c89c52 x/tools/gopls: add a skipped test for renaming of package
c901190 internal/lsp/source/genapijson: add 'gopls_' prefix to commands
a5d9e45 internal/lsp/source: be consistent about command identifiers
b29caf7 internal/lsp/source: include setting name in all settings errors
828e89d internal/lsp: fix env setting type
6e6f73a internal/lsp: fix mismatches between doc and settings
1610a49 internal/lsp/source/completion: use a minimum budget of 10ms for shallow completions
d162461 go/analysis/passes/asmdecl: add support for ABI selector clauses
64a9e34 internal/imports: dedupe import paths for standard library packages
c16b75f internal/imports: bump relevance for modules with higher major versions
0112737 gopls/internal/regtest: add a test for switching from modules to GOPATH
d88ec18 go/analysis: add IgnoredFiles, check ignored files in buildtag check
67cabf8 go/loader: delete example_test.go
8c26973 gopls: add "go test" code action
2db1cd7 internal/lsp: extract mod errors in load and treat them like diagnostics
ec925d8 gopls/internal/regtest: add a failing test for swig
5bd0538 internal/lsp: move the workspaceMode into the snapshot
ed2f502 internal/lsp/semantic.go: generate semantic tokens
6e5c6d7 internal/lsp: handle nil pointer in semantic tokens
fcf8212 internal/lsp/source: handle a possible nil pointer in call hierarchy
96877f2 internal/lsp, gopls: require a "gopls_" prefix on all commands
9ab7e51 internal/lsp: don't show blank identifiers in outline
7ddb464 internal/lsp: add "type " to hover messages for structs/interfaces/etc
d01b322 internal/lsp/cache: extract goimports code
4c6f507 gopls/doc: use enum value docstrings, if they exist
ffec978 internal/lsp: handle major versions above v0/v1 in workspace module mode
03e951c internal/lsp/source: add an experimental new cache key for packages
9df6960 internal/lsp: don't pass build flags to `go mod` commands
0806396 internal/lsp: don't show an error for "allExperiments" in (options).set
d5f20aa gopls: add regtest mode for experiments, like workspace module tests
45061ab internal/lsp: add support for an "enable all experiments" settings
a00137c internal/lsp: default to workspace module mode even with vendor dirs
454bc3d internal/lsp/source: show references to interface methods
23a3aa1 internal/lsp: improve handling of files not in views
567bb5a go/analysis/analysistest: fix issue in RunWithSuggestedFixes on a package with tests
90a82dd internal/lsp/cache: actually remove the view's modURI and sumURI
576e169 internal/lsp: fix hover for builtin error method (Error)
1ccce62 internal/lsp/cache: prevent version from including line break
9854aba internal/lsp: unconditionally create changedFiles map
ecd9fd2 internal/lsp/source: ignore empty package names for completion
39ee293 gopls: add test for `go mod tidy` diagnostics in multiple modules
76a79a6 internal/lsp/source: factor out enum options pattern
7e5cd54 internal/lsp/source: improve documentation for symbolStyle
08f1973 gopls/internal/regtest: only run in singleton mode
2268388 internal/lsp: fix go.mod creation without experimental workspace module
8445f4f internal/lsp: add experimental support for multi-phase diagnostics
0d28ed0 gopls: add a test that mirrors govim's -mod=readonly test
b5b8742 internal/lsp/source: refactor c.item to support deepSearch in all cases
4e032a7 internal/lsp: fix and add a test for non-workspace module mode
dc8b4ba internal/lsp: fix two more staticcheck warnings
af0a1b5 internal/lsp: fix staticcheck warning
41c411d internal/lsp/testdata: remove diagnostic from percent package
77e61d3 internal/lsp/source: remove unused Session method
1e3611d internal/lsp: remove logic for re-creating a view when a go.mod changes
43ebab8 gopls/doc: fix section rewriting
e57f6d4 internal/lsp: move hasValidBuildConfiguration into the snapshot
2e5f0cf internal/lsp: remove all but one use of the view's modURI field
a6f32d1 gopls/internal/regtest: allow cleanup to fail on windows
a44386f internal/lsp/source/completion: use c.matcher for comments
66e72d0 internal/lsp: print the go version only once the view is created
c8c0a1c internal/lsp/semantic.go: add the skeleton for supporting semantic tokens
bf155c1 internal/lsp: use published diagnostics instead of reports in lsp_test
bce87a7 internal/lsp/source/completion: remove unused contexts
c43c25c internal/lsp/source: run deep completions before unimported completions
f1e51e6 internal/lsp: stop using modURI as much as possible
fc8742f cmd/bundle: expand test coverage to all modes
5272f30 gopls: fix various staticcheck errors
ffa3839 cmd/bundle: use caller's module version via go/packages
d7fc70a gopls/internal/regtest: always await InitialWorkspaceLoad
a0ef9b6 internal/lsp: prepare for deletion of view.modURI
19e0367 internal/lsp/cache: use gopls.mod for the workspace module if it exists
50ab967 internal/lsp/source: add additional generated docs
42b62fc gopls/internal/regtest: fix data race when printing logs
5d1fdd8 internal/lsp: allow multiple go.mod files in a view
e843550 internal/lsp: run marker tests in multi-module mode
4c77dbd internal/lsp: fix race condition caused by config in `go mod tidy`
34b80a0 gopls/doc: update and expand the nvim documentation
0eae6ac internal/lsp: add a test for gc annotation details code lens
8d73f17 internal/lsp: move package selection to before type checking
Change-Id: If6de848f3d37deda28273b0b75dce2425fd1fe5dFile tree
148 files changed
+5735
-2510
lines changed- cmd
- bundle
- toolstash
- gopls
- doc
- internal/regtest
- test
- go
- analysis
- analysistest
- internal/checker
- passes
- asmdecl
- testdata/src/a
- buildtag
- testdata/src/a
- unsafeptr
- testdata/src/a
- unitchecker
- internal/packagesdriver
- loader
- packages
- internal
- gocommand
- imports
- lsp
- analysis/simplifycompositelit
- cache
- cmd
- test
- debug
- fake
- mod
- protocol
- source
- completion
- genapijson
- genopts
- testdata
- %percent
- comment_completion
- godef
- a
- b
- references/interfaces
- semantic
- symbols
- workspacesymbol/casesensitive
- tests
- packagesinternal
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
148 files changed
+5735
-2510
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
| |||
58 | 55 | | |
59 | 56 | | |
60 | 57 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 58 | + | |
| 59 | + | |
65 | 60 | | |
66 | 61 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 62 | + | |
72 | 63 | | |
73 | | - | |
| 64 | + | |
74 | 65 | | |
75 | 66 | | |
76 | 67 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 68 | + | |
81 | 69 | | |
82 | | - | |
| 70 | + | |
83 | 71 | | |
84 | 72 | | |
85 | 73 | | |
| |||
88 | 76 | | |
89 | 77 | | |
90 | 78 | | |
91 | | - | |
92 | 79 | | |
93 | | - | |
94 | 80 | | |
95 | 81 | | |
96 | 82 | | |
97 | 83 | | |
98 | 84 | | |
99 | 85 | | |
100 | | - | |
101 | 86 | | |
102 | 87 | | |
103 | 88 | | |
104 | | - | |
| 89 | + | |
105 | 90 | | |
106 | 91 | | |
107 | 92 | | |
108 | 93 | | |
109 | | - | |
110 | | - | |
| 94 | + | |
| 95 | + | |
111 | 96 | | |
112 | | - | |
113 | 97 | | |
114 | 98 | | |
115 | 99 | | |
| |||
148 | 132 | | |
149 | 133 | | |
150 | 134 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
165 | 145 | | |
166 | 146 | | |
167 | | - | |
| 147 | + | |
168 | 148 | | |
169 | 149 | | |
170 | 150 | | |
| |||
191 | 171 | | |
192 | 172 | | |
193 | 173 | | |
194 | | - | |
| 174 | + | |
195 | 175 | | |
196 | 176 | | |
197 | 177 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
203 | 188 | | |
204 | 189 | | |
205 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
206 | 195 | | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | 196 | | |
211 | | - | |
| 197 | + | |
212 | 198 | | |
213 | 199 | | |
214 | 200 | | |
| |||
223 | 209 | | |
224 | 210 | | |
225 | 211 | | |
226 | | - | |
| 212 | + | |
227 | 213 | | |
228 | | - | |
| 214 | + | |
229 | 215 | | |
230 | 216 | | |
231 | 217 | | |
| |||
235 | 221 | | |
236 | 222 | | |
237 | 223 | | |
238 | | - | |
| 224 | + | |
239 | 225 | | |
240 | 226 | | |
241 | 227 | | |
| |||
254 | 240 | | |
255 | 241 | | |
256 | 242 | | |
257 | | - | |
| 243 | + | |
258 | 244 | | |
259 | 245 | | |
260 | 246 | | |
| |||
283 | 269 | | |
284 | 270 | | |
285 | 271 | | |
286 | | - | |
| 272 | + | |
287 | 273 | | |
288 | 274 | | |
289 | 275 | | |
290 | | - | |
| 276 | + | |
291 | 277 | | |
292 | 278 | | |
293 | 279 | | |
| |||
304 | 290 | | |
305 | 291 | | |
306 | 292 | | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | 293 | | |
311 | 294 | | |
312 | 295 | | |
| |||
326 | 309 | | |
327 | 310 | | |
328 | 311 | | |
329 | | - | |
| 312 | + | |
330 | 313 | | |
331 | | - | |
| 314 | + | |
332 | 315 | | |
333 | 316 | | |
334 | 317 | | |
335 | 318 | | |
336 | | - | |
| 319 | + | |
337 | 320 | | |
338 | 321 | | |
339 | 322 | | |
| |||
345 | 328 | | |
346 | 329 | | |
347 | 330 | | |
348 | | - | |
| 331 | + | |
349 | 332 | | |
350 | 333 | | |
351 | 334 | | |
| |||
379 | 362 | | |
380 | 363 | | |
381 | 364 | | |
382 | | - | |
| 365 | + | |
383 | 366 | | |
384 | 367 | | |
385 | 368 | | |
386 | 369 | | |
387 | | - | |
| 370 | + | |
388 | 371 | | |
389 | 372 | | |
390 | 373 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
| 15 | + | |
18 | 16 | | |
19 | 17 | | |
20 | | - | |
| 18 | + | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
37 | 36 | | |
38 | | - | |
39 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
| |||
0 commit comments