1
0
mirror of https://github.com/golang/go synced 2024-10-01 09:48:32 -06:00
go/internal/lsp/cmd
Ian Cottrell e88138204b internal/span: change URI.Filename so it just returns the filename
We panic if the uri was not a valid file uri instead
They always are a valid file URI, and we would fail miserably to cope if they were
not anyway, and there are lots of places where we need to be able to get the filename
and don't want to cope with an error that cannot occur.
If we ever have not file uri's, you will have to check if it is a file before calling
.Filename, which seems reasonable anyway.

Change-Id: Ifb26a165bd43c2d310378314550b5749b09e2ebd
Reviewed-on: https://go-review.googlesource.com/c/tools/+/181017
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-06-10 21:39:43 +00:00
..
check_test.go internal/span: change URI.Filename so it just returns the filename 2019-06-10 21:39:43 +00:00
check.go internal/lsp: fix race in delivering diagnostics to the command line client 2019-05-20 19:38:31 +00:00
cmd_race_test.go internal/lsp: extract the common test logic 2019-04-22 16:50:02 +00:00
cmd_test.go internal/lsp: add find all references 2019-06-10 19:06:22 +00:00
cmd.go internal/span: change URI.Filename so it just returns the filename 2019-06-10 21:39:43 +00:00
definition_test.go internal/span: change URI.Filename so it just returns the filename 2019-06-10 21:39:43 +00:00
definition.go internal/lsp: add shutdown handling 2019-05-15 23:16:32 +00:00
export_test.go internal/lsp: refactor query definition test to allow adding a new test 2019-03-18 20:06:54 +00:00
format_test.go internal/span: change URI.Filename so it just returns the filename 2019-06-10 21:39:43 +00:00
format.go internal/span: change URI.Filename so it just returns the filename 2019-06-10 21:39:43 +00:00
info.go internal/lsp: move PrintVersionInfo to the debug package 2019-06-03 15:29:06 +00:00
query.go internal/lsp: fix query cmd usage 2019-04-22 18:06:03 +00:00
serve.go internal/lsp: add debug page serving 2019-05-30 00:16:15 +00:00