We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c411de commit 8b695b2Copy full SHA for 8b695b2
internal/lsp/protocol/log.go
@@ -159,8 +159,12 @@ func logOut(outfd io.Writer, data []byte) {
159
fmt.Fprintf(&buf, "Result: %s%s", string(*v.Result), eor)
160
}
161
} else if v.ID == nil && v.Method != "" && v.Params != nil {
162
+ p := "null"
163
+ if v.Params != nil {
164
+ p = string(*v.Params)
165
+ }
166
fmt.Fprintf(&buf, "Received notification '%s'.\n", v.Method)
- fmt.Fprintf(&buf, "Params: %s%s", *v.Params, eor)
167
+ fmt.Fprintf(&buf, "Params: %s%s", p, eor)
168
} else { // for completeness, as it should never happen
169
buf = strings.Builder{} // undo common Trace
170
fmt.Fprintf(&buf, "[Error - %s] on write ID?%v method:%q Params:%v Result:%v Error:%v%s",
0 commit comments