diff --git a/third_party/tsserver/package.json b/third_party/tsserver/package.json index 402b5a9040..d79e378bb9 100644 --- a/third_party/tsserver/package.json +++ b/third_party/tsserver/package.json @@ -1,6 +1,6 @@ { "description": "ycmd tsserver runtime area with required typescript version and plugins", "dependencies": { - "typescript": "5.4.5" + "typescript": "5.7.2" } } diff --git a/ycmd/tests/java/server_management_test.py b/ycmd/tests/java/server_management_test.py index 469f3222f5..056f529f34 100644 --- a/ycmd/tests/java/server_management_test.py +++ b/ycmd/tests/java/server_management_test.py @@ -515,9 +515,13 @@ def test_ServerManagement_ConnectionRaisesWhileShuttingDown( self, app ): # the shutdown request. This means we only send the exit notification. It's # possible that the server won't like this, but it seems reasonable for it # to actually exit at that point. - with patch.object( completer.GetConnection(), - 'GetResponse', - side_effect = RuntimeError ): + from ycmd.completers.language_server import language_server_completer + from ycmd.completers.language_server import language_server_protocol as lsp + def BrokenShutdown( request_id ): + return lsp.BuildRequest( None, 'shutdown', None ) + with patch.object( language_server_completer.lsp, + 'Shutdown', + side_effect = BrokenShutdown ): app.post_json( '/run_completer_command', BuildRequest(