vala-lang / vala-vscode

Vala and Genie integration for Visual Studio Code/VSCodium/Code-OSS
MIT License
41 stars 9 forks source link

How do I inform Vala extension or Vala language server about dependent libraries/namespaces #30

Closed Hermholtz closed 8 months ago

Hermholtz commented 8 months ago

Hi!

I'm trying to use VSCode to write a Vala program that uses a PostgreSQL database. Unfortunately I don't know how to tell it where's the Vala's Postgres namespace. The program compiles and runs just fine using the command seen in comment, but VSCode shows squiggles. This is the sample program I'm using. It's Ubuntu 22.04, Vala extension 1.1.0, Vala language server 0.48.7-1, all freshly updated.

Is it possible to use Postgres with this extension? Thanks in advance!

image

Hermholtz commented 8 months ago

I found the answer in vala-language-server issue: https://github.com/vala-lang/vala-language-server/issues/298#issuecomment-1738493324