Skip to content

Commit 4409ea7

Browse files
adonovangopherbot
authored andcommitted
gopls/internal/server: add telemetry for Zed, Helix clientInfo
Change-Id: Ifbba17dcab6dd3f9db02fcb5afda9a067a36a4ad Reviewed-on: https://go-review.googlesource.com/c/tools/+/702116 Reviewed-by: Robert Findley <[email protected]> Auto-Submit: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 75023ae commit 4409ea7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gopls/internal/server/general.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,9 @@ func recordClientInfo(clientName string) {
671671
case "govim":
672672
// https://github.com/govim/govim/pull/1189
673673
key = "gopls/client:govim"
674+
case "helix":
675+
// https://github.com/helix-editor/helix/blob/d0218f7e78bc0c3af4b0995ab8bda66b9c542cf3/helix-lsp/src/client.rs#L714
676+
key = "gopls/client:helix"
674677
case "Neovim":
675678
// https://github.com/neovim/neovim/blob/42333ea98dfcd2994ee128a3467dfe68205154cd/runtime/lua/vim/lsp.lua#L1361
676679
key = "gopls/client:neovim"
@@ -684,6 +687,9 @@ func recordClientInfo(clientName string) {
684687
key = "gopls/client:windsurf"
685688
case "Cursor":
686689
key = "gopls/client:cursor"
690+
case "Zed", "Zed Dev", "Zed Nightly", "Zed Preview":
691+
// https: //github.com/zed-industries/zed/blob/0ac17526687bf11007f0fbb5c3b2ff463ce47293/crates/release_channel/src/lib.rs#L147
692+
key = "gopls/client:zed"
687693
default:
688694
// Accumulate at least a local counter for an unknown
689695
// client name, but also fall through to count it as

0 commit comments

Comments
 (0)