Add note on all features in languageServerExperimentalFeatures setting

This commit is contained in:
Ramya Achutha Rao 2019-09-22 15:05:35 -07:00
Родитель 551b7cc6bd
Коммит 12369dd662
1 изменённых файлов: 18 добавлений и 1 удалений

Просмотреть файл

@ -118,7 +118,24 @@ Previously, we added support to use `go-langserver`, the [language server from S
Below are the settings you can use to control the use of the language server. You need to reload the VS Code window for any changes in these settings to take effect.
- Set `go.useLanguageServer` to `true` to enable the use of language server
- Use the setting `go.languageServerExperimentalFeatures` to control which features do you want to be powered by the language server.
- Use the setting `go.languageServerExperimentalFeatures` to control which features do you want to be powered by the language server. Below are the various features you can control. By default, all are set to `true`.
```json
"go.languageServerExperimentalFeatures": {
"format": true,
"autoComplete": true,
"rename": true,
"goToDefinition": true,
"hover": true,
"signatureHelp": true,
"goToTypeDefinition": true,
"goToImplementation": true,
"documentSymbols": true,
"workspaceSymbols": true,
"findReferences": true,
"diagnostics": true,
"documentLink": true
}
```
- Set `"go.languageServerFlags": ["-logfile", "path to a text file that exists"]` to collect logs in a log file.
- Set `"go.languageServerFlags": ["-rpc.trace"]` to see the complete rpc trace in the output panel (`View` -> `Output` -> `gopls`)