go/internal/lsp/source
Michael Matloob be40034de7 internal/lsp: add support for formatting go.work files
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>
2022-02-15 17:15:32 +00:00
..
completion internal/lsp/source/completion: add conventional acronyms for type names 2022-02-03 15:53:42 +00:00
add_import.go
api_json.go internal/lsp: add ListImports 2022-02-04 22:09:29 +00:00
call_hierarchy.go internal/lsp/source: check for nil objects in call hierarchy 2021-10-27 16:11:50 +00:00
code_lens.go
comment.go
comment_test.go
diagnostics.go
extract.go internal/lsp: adjust extract function range if block statement 2021-10-22 02:18:41 +00:00
fix.go
folding_range.go internal/lsp: foldable multiline strings 2022-01-04 20:54:25 +00:00
format.go internal/lsp/source: don't format generated files 2021-12-06 16:11:25 +00:00
format_test.go internal/lsp: use source.Offset instead of tok.Offset 2021-10-12 22:12:04 +00:00
gc_annotations.go
highlight.go
hover.go internal/lsp/source: provide full documentation of builtin types 2022-02-08 17:01:10 +00:00
identifier.go internal/lsp/source: provide full documentation of builtin types 2022-02-08 17:01:10 +00:00
identifier_test.go
implementation.go internal/lsp: use source.Offset instead of tok.Offset 2021-10-12 22:12:04 +00:00
known_packages.go
offset_test.go internal/lsp: use source.Offset instead of tok.Offset 2021-10-12 22:12:04 +00:00
options.go internal/lsp: add support for formatting go.work files 2022-02-15 17:15:32 +00:00
options_test.go
references.go
rename.go
rename_check.go
signature_help.go
source_test.go gopls: remove the workspace_metadata command 2022-02-04 14:02:58 +00:00
symbols.go
types_format.go internal/lsp/source: use the real type parameter in snippet completions 2022-01-21 14:07:19 +00:00
util.go gopls: recognize the go.work file type 2022-02-04 14:03:20 +00:00
view.go internal/lsp: add support for formatting go.work files 2022-02-15 17:15:32 +00:00
workspace_symbol.go internal/lsp/source: parse symbol queries when using fastfuzzy 2022-01-19 15:06:07 +00:00
workspace_symbol_test.go internal/lsp/source: parse symbol queries when using fastfuzzy 2022-01-19 15:06:07 +00:00