def test():
    """Test LSP client."""
    from spyder.utils.qthelpers import qapplication
    app = qapplication(test_time=8)
    server_args_fmt = '--host %(host)s --port %(port)s --tcp'
    server_settings = {'host': '127.0.0.1', 'port': 2087, 'cmd': 'pyls'}
    lsp = LSPClient(app, server_args_fmt, server_settings)
    lsp.start()

    app.aboutToQuit.connect(lsp.stop)
    signal.signal(signal.SIGINT, signal.SIG_DFL)
    sys.exit(app.exec_())
def test ( ) : from spyder . utils . qthelpers import qapplication app = qapplication ( test_time = 8 ) server_args_fmt = '--host %(host)s --port %(port)s --tcp' server_settings = { 'host' : '127.0.0.1' , 'port' : 2087 , 'cmd' : 'pyls' } lsp = LSPClient ( app , server_args_fmt , server_settings ) lsp . start ( ) app . aboutToQuit . connect ( lsp . stop ) signal . signal ( signal . SIGINT , signal . SIG_DFL ) sys . exit ( app . exec_ ( ) )
Test LSP client.