From ed4e25920d2b7c65d95528f0c9cae7dcb75f2dac Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Tue, 6 Aug 2019 13:04:14 -0400 Subject: [PATCH] update supported features response --- gopls-integrator-FAQ.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gopls-integrator-FAQ.md b/gopls-integrator-FAQ.md index a0011fef..dfee79d5 100644 --- a/gopls-integrator-FAQ.md +++ b/gopls-integrator-FAQ.md @@ -14,7 +14,11 @@ Feel free to add additional questions and answers here as they come up. To ask a ## Supported features -The most accurate answer to this question is to examine the `InitializeResult` response to [`Initialize`](https://github.com/Microsoft/language-server-protocol/blob/gh-pages/specification.md#initialize-request-leftwards_arrow_with_hook), specifically the `capabilities` field of type `ServerCapabilities` +`gopls` is in active development, so the set of supported features is in flux. A basic overview of supported features can be found on the [`gopls` wiki page](https://github.com/golang/go/wiki/gopls#status). + +For the most current answer, see the [`InitializeResult`](https://godoc.org/golang.org/x/tools/internal/lsp/protocol#InitializeResult) response to the [`Initialize`](https://microsoft.github.io/language-server-protocol/specification#initialize) request. The server enumerates its `capabilities` in the [`ServerCapabilities`](https://godoc.org/golang.org/x/tools/internal/lsp/protocol#ServerCapabilities), so it explicitly states which features it does support. + +As of the time of writing (2019-08-06), `gopls` returns the [`InitializeResult`](https://godoc.org/golang.org/x/tools/internal/lsp/protocol#InitializeResult) in the `server.initialize` function which can be found in [`golang.org/x/tools/internal/lsp/general.go`](https://github.com/golang/tools/blob/master/internal/lsp/general.go). All of the exported `gopls` server functions can be found in [`golang.org/x/tools/internal/lsp/server.go`](https://github.com/golang/tools/blob/master/internal/lsp/server.go). ## UTF-8, UTF-16 and position information