diff --git a/internal/lsp/protocol/tsclient.go b/internal/lsp/protocol/tsclient.go index 71d6c1168f..b92f01c7b9 100644 --- a/internal/lsp/protocol/tsclient.go +++ b/internal/lsp/protocol/tsclient.go @@ -1,6 +1,6 @@ package protocol -//automatically generated +// Code generated (see typescript/README.md) DO NOT EDIT. import ( "context" diff --git a/internal/lsp/protocol/tsprotocol.go b/internal/lsp/protocol/tsprotocol.go index 62afa96506..e18587ef38 100644 --- a/internal/lsp/protocol/tsprotocol.go +++ b/internal/lsp/protocol/tsprotocol.go @@ -1,8 +1,11 @@ -// Package protocol contains data types for LSP jsonrpcs +// Package protocol contains data types and code for LSP jsonrpcs // generated automatically from vscode-languageserver-node -// version of Fri Apr 05 2019 10:16:07 GMT-0400 (Eastern Daylight Time) +// commit: 54f6caacea8aa0cf9f45527153d993010c1cc793 +// last fetched Fri Apr 05 2019 10:16:07 GMT-0400 (Eastern Daylight Time) package protocol +// Code generated (see typescript/README.md) DO NOT EDIT. + // WorkspaceFolder is type WorkspaceFolder struct { diff --git a/internal/lsp/protocol/tsserver.go b/internal/lsp/protocol/tsserver.go index e756b79ca5..3d53000cd5 100644 --- a/internal/lsp/protocol/tsserver.go +++ b/internal/lsp/protocol/tsserver.go @@ -1,6 +1,6 @@ package protocol -//automatically generated +// Code generated (see typescript/README.md) DO NOT EDIT. import ( "context" @@ -253,7 +253,8 @@ func serverHandler(log xlog.Logger, server Server) jsonrpc2.Handler { conn.Reply(ctx, r, nil, jsonrpc2.NewErrorf(jsonrpc2.CodeInvalidParams, "Expected no params")) return } - if err := server.Shutdown(ctx); err != nil { + err := server.Shutdown(ctx) + if err := conn.Reply(ctx, r, nil, err); err != nil { log.Errorf(ctx, "%v", err) } case "textDocument/willSaveWaitUntil": // req