Skip to content

Commit bae51bd

Browse files
h9jianggopherbot
authored andcommitted
gopls/internal/server: add windsurf and cursor as language client
Both the langauge client are closed source, the client info is found by enabling vscode-go and turn on verbose lsp methods. For golang/go#74874 Change-Id: Ie79292c575c6254d3aac8f110ebb21956bf4b311 Reviewed-on: https://go-review.googlesource.com/c/tools/+/693095 Reviewed-by: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Hongxiang Jiang <[email protected]>
1 parent 9420753 commit bae51bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gopls/internal/server/general.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,10 @@ func recordClientInfo(clientName string) {
681681
case "Sublime Text LSP":
682682
// https://github.com/sublimelsp/LSP/blob/e608f878e7e9dd34aabe4ff0462540fadcd88fcc/plugin/core/sessions.py#L493
683683
key = "gopls/client:sublimetext"
684+
case "Windsurf":
685+
key = "gopls/client:windsurf"
686+
case "Cursor":
687+
key = "gopls/client:cursor"
684688
default:
685689
// Accumulate at least a local counter for an unknown
686690
// client name, but also fall through to count it as

0 commit comments

Comments
 (0)