diff --git a/internal/lsp/server.go b/internal/lsp/server.go index feb27e6d..d0808d61 100644 --- a/internal/lsp/server.go +++ b/internal/lsp/server.go @@ -447,6 +447,16 @@ func (l *LanguageServer) StartCommandWorker(ctx context.Context) { if err != nil { l.logError(err) + err := l.conn.Notify(ctx, "window/showMessage", types.ShowMessageParams{ + Type: 1, // error + Message: err.Error(), + }) + if err != nil { + l.logError(fmt.Errorf("failed to notify client of command error: %w", err)) + + break + } + break }