Comment

Comment by philsnow

I opened a random python project on my machine in Zed and it automatically loaded up an LSP for python. It looks like it's using the same one as my emacs uses (pyright), but it presents completion choices in a not particularly useful order. Typing `os.p` gives me for instance as completion choices:

  pwritev
  pwrite
  putenv
  popen
  pipe
  path
  P_ALL
  P_PID
  pread
  pardir
  P_PGID
  P_WAIT
... but then I type 'a' and then backspace and it gives some of the same choices, but in a different order

  P_ALL
  path
  pread
  pardir
  P_WAIT
  [etc]
here's a gif of it, I'm just typing and backspacing through "os.path" and watching the completions be in an unguessable order: https://snap.philsnow.io/2024-01-24T13-57-09.q7pyi8re104uqhn...

Is pyright just giving Zed all the possibilities and it's up to Zed to rank them? I don't know the details of editor/LSP integration. lsp-whatever in emacs ranks these choices in a reasonable order.

parent philsnow 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton