File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 44import os
55import sys
66import time
7+ import traceback
78import uuid
89
9- from pygls .exceptions import (
10- JsonRpcException ,
11- JsonRpcInternalError ,
12- JsonRpcInvalidRequest ,
13- )
14-
1510try : # pragma: nocover
1611 from lsprotocol import types
12+ from pygls .exceptions import (
13+ JsonRpcException ,
14+ JsonRpcInternalError ,
15+ JsonRpcInvalidRequest ,
16+ )
1717 from pygls .server import LanguageServer
1818except ModuleNotFoundError : # pragma: nocover
1919 print (
@@ -166,7 +166,7 @@ async def execute_command(ls: LanguageServer, args: list[str]):
166166 raise
167167 else : # pragma: nocover
168168 # wrap non-pygls errors for error codes.
169- raise JsonRpcInternalError (e . __traceback__ ) from e
169+ raise JsonRpcInternalError (message = traceback . format_exc () ) from e
170170
171171
172172async def lsp_start () -> int :
You can’t perform that action at this time.
0 commit comments