-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/gopls: add editing support for the go.work filetype #50930
Comments
Change https://golang.org/cl/382237 mentions this issue: |
For golang/go#50930 Change-Id: I5bae56853f1e913fccd559d2a553ced4200bcb35 Reviewed-on: https://go-review.googlesource.com/c/tools/+/382237 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Change https://go.dev/cl/383774 mentions this issue: |
Wired through support for calling x/mod's go.work formatter on go.work files into LSP. Tested it by hand in editor using the "Format Document" command. Added a test case to workspace_test regtest, though I'm not totally sure the test is correct. For golang/go#50930 Change-Id: Ied052ded514bb36f561737698f0e2d7b488158e7 Reviewed-on: https://go-review.googlesource.com/c/tools/+/383774 Trust: Michael Matloob <matloob@golang.org> Run-TryBot: Michael Matloob <matloob@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Change https://go.dev/cl/389301 mentions this issue: |
Change https://go.dev/cl/389317 mentions this issue: |
Change https://go.dev/cl/390054 mentions this issue: |
Report diagnostics on use lines where the directory doesn't have a go.mod file, and on syntax errors in go.work. For golang/go#50930 Change-Id: Idab36b43d86c4842f8eecd5c071ce0587e6f27b3 Reviewed-on: https://go-review.googlesource.com/c/tools/+/389317 Trust: Michael Matloob <matloob@golang.org> Run-TryBot: Michael Matloob <matloob@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Show the module path of the module being used. For golang/go#50930 Change-Id: I90a67e12182ffb457876b1fbc95aeb56ff632878 Reviewed-on: https://go-review.googlesource.com/c/tools/+/389301 Trust: Michael Matloob <matloob@golang.org> Run-TryBot: Michael Matloob <matloob@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Change https://go.dev/cl/390594 mentions this issue: |
This handles syntax highlighting in VS Code Go when users don't opt in for semantic tokens to be implemented in golang/go#50930. The go.mod and go.work syntaxes are currently identical except the keywords. Change-Id: I9395588c9291f88ed2690e939bf486f626e12a4c Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/390594 Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Michael Matloob <michaelmatloob@gmail.com> Reviewed-by: Peter Weinberger <pjw@google.com>
For golang/go#50930 Change-Id: I9def58e9406ee735c93e988de336dbfee37e6c95 Reviewed-on: https://go-review.googlesource.com/c/tools/+/390054 Trust: Michael Matloob <matloob@golang.org> Run-TryBot: Michael Matloob <matloob@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Let's close this as-is for now. We can file a separate issue for follow up. |
This is a meta issue tracking additional language features for
go.work
files, similar to whatgopls
provides forgo.mod
files.The implementation of certain features (such as formatting or hover) should be very similar to
go.mod
files (see x/tools/internal/lsp/mod. Others may be unique togo.work
. Here is a list of some features we could add -- we can open separate issues for these as needed:Semantic tokens.go
command output or implemented ad-hoc.@pjweinb has recently wired in LSP support for template files (see x/tools/internal/lsp/template), so may be able to advise.
CC @matloob
The text was updated successfully, but these errors were encountered: