Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I am confused what this does.

Is it that I type in my IDE "SEL" and is suggests "SELECT"?

In which situation would this be useful?



it would also be able to suggest columns/fields from your database, as well as picking up errors. for example, given this table:

    create table profiles (
      id serial primary key,
      first_name text,
      last_name text
    );
and this query:

    select id, firstname from profiles;
it would then help to detect if you had an error in your select query (in this case, "firstname" should be "first_name"), and your code editor would show a warning, even before you try to run the code inside your database


I don't think it connects to a database, so it cannot suggest field names yet. Correct me if I'm wrong.


not yet, but we will add this. As of now, the project is just a poc to show that the approach of using libg_query to parse the source works. Most of the work is still ahead.


Essentially, LSPs are generic implementations of features like autocomplete, expand selection, refactor, etc., with a standardized API.

Different editors and IDEs can use the same LSP, without the need to reinvent/reimplement the wheel.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: