Autocompletion for imported variables
ju6ge opened this issue · 2 comments
ju6ge commented
Hi,
I am using typst-lsp 0.13.0
and noticed that imported variables are not autocompleted.
Example: variable.typ
#let test_var = 100
Example: document.typ
#import "variable.typ": *
#test_var
Expected behavior:
when typing the variable name in the document.typ
it should be suggested, just like functions. This also applies when do specific imports:
#import "variable.typ": test_var
Current Behavior:
Suggestions currently only seems to be based on already typed words in current lsp context / document. So variables are only suggested when the names has already been typend once in the current typst
file.
Myriad-Dreamin commented
Will be fixed by typst#3842 Fix source path resolution in import analysis
stojan97 commented
This is not fixed, it still happens on the latest version v0.13.0