CHANGELOG.md: document the step to enable lsp logs from vscode After the langauge client lib update to support lsp 3.18, the output channel management is now managed by the vscode and the extension can no longer set log level for the output channel. IMO, a better way is to allow the extension to set the default log level (verbose level) output channels. Raised in the comment: See microsoft/vscode-languageserver-node#1754 Change-Id: Ieeeb94808e22ffc9d6859b9097ba295df72d5b53 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/810821 Reviewed-by: Madeline Kalil <mkalil@google.com> Auto-Submit: Hongxiang Jiang <hxjiang@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/CHANGELOG.md b/CHANGELOG.md index cb254ce..68ddb73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md
@@ -12,6 +12,7 @@ * The "Go: Generate Interface Stubs" command (`go.impl.cursor`) is now powered by `gopls` by default using interactive refactoring. Place your cursor inside the target type declaration (e.g. `type Foo struct`), and `gopls` will prompt for the interface to implement and insert the method stubs after the type declaration. The previous implementation remains available via the "Go: Generate Interface Stubs (legacy)" command (`go.impl.cursor.legacy`), which inserts method stubs directly at the cursor location. * Replaced the `wmic`-based Windows process picker for attach debugging with the native `@vscode/win32-app-container-tokens` module, as the `wmic` tool itself is deprecated on Windows ([#3687](https://github.com/golang/vscode-go/issues/3687)). +* Language client trace logging is now integrated with VS Code's `LogOutputChannel` log level system. To view verbose trace logs in the `gopls` output channel, in addition to setting `"go.trace.server": "verbose"`, you must also set the `gopls` channel log level to `Trace` (using the `Developer: Set Log Level...` command or channel settings). ## v0.57.2 (prerelease)
diff --git a/docs/settings.md b/docs/settings.md index b978bdb..a6c28b5 100644 --- a/docs/settings.md +++ b/docs/settings.md
@@ -535,7 +535,7 @@ Default: `""` ### `go.trace.server` -Trace the communication between VS Code and the Go language server.<br/> +Trace the communication between VS Code and the Go language server. Also requires setting the 'gopls' output channel log level to 'Trace' ('Developer: Set Log Level...').<br/> Allowed Options: `off`, `messages`, `verbose` Default: `"off"`
diff --git a/extension/package.json b/extension/package.json index 7d37246..8d9adce 100644 --- a/extension/package.json +++ b/extension/package.json
@@ -1642,7 +1642,7 @@ "verbose" ], "default": "off", - "description": "Trace the communication between VS Code and the Go language server." + "description": "Trace the communication between VS Code and the Go language server. Also requires setting the 'gopls' output channel log level to 'Trace' ('Developer: Set Log Level...')." }, "go.logging.level": { "type": "string",