halfbrained / cuda_lsp

LSP Client plugin for CudaText
6 stars 4 forks source link

maybe make these nums - global consts? #56

Closed Alexey-T closed 3 years ago

Alexey-T commented 3 years ago
            time.sleep(0.1)
            for key,lang in list(self._langs.items()):
                lang.process_queues()
                if lang.is_client_exited():
                    del self._langs[key]

            if time.time() - _start > 2:

0.1 and 2

Alexey-T commented 3 years ago

and 3) str(msg)[:80]

Alexey-T commented 3 years ago

and 4) 256

                ed.set_text_all(pprint.pformat(lang._dbg_msgs[ind].dict(), width=256))
            except:
                j = {k:str(v) for k,v in lang._dbg_msgs[ind].dict().items()}
                ed.set_text_all(pprint.pformat(j, width=256))
halfbrained commented 3 years ago

ok

and 4) 256

this probably should just be an editor width, right? (with a minimum of 80 probably)

Alexey-T commented 3 years ago

i don't know what code wants here. maximal len of line to wrap? i don't know

halfbrained commented 3 years ago

maximal len of line to wrap?

Yes.

Changed