3 ms·
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?
by TekMol 3y ago
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?
- Hendrikto 3y agoEssentially, 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.
- kiwicopple 3y agoit 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
- lovasoa 3y agoI don't think it connects to a database, so it cannot suggest field names yet. Correct me if I'm wrong.
- steinroe 3y agonot 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.