wader / jq-lsp

jq language server
MIT License
65 stars 2 forks source link

Can't get module / imports to work #9

Closed LeonB closed 1 year ago

LeonB commented 1 year ago
import "jq-lib" as L;

L::testfunction

gives the warning: L::testfunction not found

Screenshot 2023-06-12 at 10 16 33

Is there I way I can setup the directory to search modules from? Just like the -L option from the gojq cli?

wader commented 1 year ago

Hi, thanks for the report. Yeap that is missing at the moment, but i guess it shouldn't be that much work to fix.

About -L, that should be possible also but i'm not sure how it would be communicated to the lsp serve? thru extension option? some kind of config in jq file?

wader commented 1 year ago

Maybe create a separate issue for the search path thing?

LeonB commented 1 year ago

Will do!

wader commented 1 year ago

👍 and let me know if the PR fixed your problem

LeonB commented 1 year ago

Did fix the issue. Thanks!