diff --git a/cmd/templ/lspcmd/proxy/server.go b/cmd/templ/lspcmd/proxy/server.go index 6599e17ce..3e36e9e86 100644 --- a/cmd/templ/lspcmd/proxy/server.go +++ b/cmd/templ/lspcmd/proxy/server.go @@ -210,6 +210,7 @@ func (p *Server) parseTemplate(ctx context.Context, uri uri.URI, templateText st func (p *Server) Initialize(ctx context.Context, params *lsp.InitializeParams) (result *lsp.InitializeResult, err error) { p.Log.Info("client -> server: Initialize") defer p.Log.Info("client -> server: Initialize end") + params.ClientInfo.Name = "templ" // see https://github.com/golang/go/issues/70205 result, err = p.Target.Initialize(ctx, params) if err != nil { p.Log.Error("Initialize failed", zap.Error(err))