UniqueVision / plpgsql-lsp

MIT License
51 stars 11 forks source link

Can the language server ignore importing of other files #86

Open adithya-sama opened 7 months ago

adithya-sama commented 7 months ago

Is your enhancement related to a problem? Please describe.

In our code base all the sql files have a common import at the beginning for example

\i common_code.sql
-- some comment
UPDTE table set...

and the language server shows the first line as error and stops validating the rest of the code. in the above case i don't see the typo being flagged.

It would be better if the language server detects this and ignores it OR if there was a way to tell the language server to ignore the following command that will also be helpful.