go/gopls/internal/regtest
Davide Masserut 93bf1fcc7c gopls: add range over channel postfix completion
This adds a snippet that applies to variables of type chan.

When used, it replaces `channel.range!` with the following snippet:
```
for e := range channel {
   |
}
```
Where `|` indicates the location of the cursor.

Change-Id: I8b2f889b22b9f2c292041e5ca5f63c5d0ca98f11
GitHub-Last-Rev: 9cb894be80d0c5243a5e42779c3e96ba79aa66b5
GitHub-Pull-Request: golang/tools#386
Reviewed-on: https://go-review.googlesource.com/c/tools/+/414194
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
2022-07-01 14:13:36 +00:00
..
bench internal/lsp/cache: use [256]byte Hash instead of hex digit string 2022-06-13 13:05:07 +00:00
codelens internal/lsp/cache: invalidate metadata when parsing issues resolve 2022-05-23 18:14:40 +00:00
completion gopls: add range over channel postfix completion 2022-07-01 14:13:36 +00:00
debug internal/lsp: add an option to get notified of bug reports 2022-05-18 01:40:46 +00:00
diagnostics internal/lsp/progress: detach context for all progress notifications 2022-06-02 20:26:04 +00:00
inlayHints internal/lsp: add InlayHint regtests 2022-06-28 15:22:17 +00:00
misc internal/imports: use a module resolver if GOWORK is set 2022-06-24 21:03:09 +00:00
modfile internal/lsp/cache: invalidate metadata when parsing issues resolve 2022-05-23 18:14:40 +00:00
template internal/lsp/cache: invalidate metadata when parsing issues resolve 2022-05-23 18:14:40 +00:00
watch internal/lsp/cache: invalidate metadata when parsing issues resolve 2022-05-23 18:14:40 +00:00
workspace internal/lsp/cache: honor the go.work for computing workspace packages 2022-06-22 14:00:53 +00:00