diff options
Diffstat (limited to 'gopls/internal/lsp/cmd/usage/serve.hlp')
-rw-r--r-- | gopls/internal/lsp/cmd/usage/serve.hlp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gopls/internal/lsp/cmd/usage/serve.hlp b/gopls/internal/lsp/cmd/usage/serve.hlp new file mode 100644 index 000000000..370cbce83 --- /dev/null +++ b/gopls/internal/lsp/cmd/usage/serve.hlp @@ -0,0 +1,30 @@ +run a server for Go code using the Language Server Protocol + +Usage: + gopls [flags] serve [server-flags] + gopls [flags] [server-flags] + +The server communicates using JSONRPC2 on stdin and stdout, and is intended to be run directly as +a child of an editor process. + +server-flags: + -debug=string + serve debug information on the supplied address + -listen=string + address on which to listen for remote connections. If prefixed by 'unix;', the subsequent address is assumed to be a unix domain socket. Otherwise, TCP is used. + -listen.timeout=duration + when used with -listen, shut down the server when there are no connected clients for this duration + -logfile=string + filename to log to. if value is "auto", then logging to a default output file is enabled + -mode=string + no effect + -port=int + port on which to run gopls for debugging purposes + -remote.debug=string + when used with -remote=auto, the -debug value used to start the daemon + -remote.listen.timeout=duration + when used with -remote=auto, the -listen.timeout value used to start the daemon (default 1m0s) + -remote.logfile=string + when used with -remote=auto, the -logfile value used to start the daemon + -rpc.trace + print the full rpc trace in lsp inspector format |