Skip to content

Commit 155bc04

Browse files
committed
main: respawn the server after crash/shutdown
1 parent ac79cef commit 155bc04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pyls/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@ def main():
5555
_configure_logger(args.verbose, args.log_config, args.log_file)
5656

5757
if args.tcp:
58-
start_tcp_lang_server(args.host, args.port, args.check_parent_process,
58+
import time
59+
while True:
60+
start_tcp_lang_server(args.host, args.port, args.check_parent_process,
5961
PythonLanguageServer)
62+
time.sleep(0.500)
6063
else:
6164
stdin, stdout = _binary_stdio()
6265
start_io_lang_server(stdin, stdout, args.check_parent_process,

0 commit comments

Comments
 (0)