You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for creating bash-lsp. I use LSPs with Golang, Rust etc. and have missed the functionality when writing Bash.
I was delighted when I inadvertently hovered over a variable in a script and its declaration was documented but these variable (re)declarations appear to not be identified correctly.
#!/usr/bin/env bash
X="Freddie"
X="Frederik"functiontest () {
local X="Dog"printf"${X}"
}
In the above, the use of X in printf "${X}" (IMO) refers to its definition in local X="Dog" but bash-lsp reports line #3 (X="Freddie").
If I comment local X="Dog", I expect (perhaps incorrectly) that the redefinition X="Frederik" should be used but it continues to refer back to line #3 (X="Freddie")
The text was updated successfully, but these errors were encountered:
A much better heuristic for symbol resolution has been released as [email protected] and for vscode in the latest extension 1.24.0. It opens up for implementing renaming of symbols, and I also believe this solves the issue here.
Please let me know if it works for you or if you have any feedback to the new version.
Thank you for creating bash-lsp. I use LSPs with Golang, Rust etc. and have missed the functionality when writing Bash.
I was delighted when I inadvertently hovered over a variable in a script and its declaration was documented but these variable (re)declarations appear to not be identified correctly.
In the above, the use of
X
inprintf "${X}"
(IMO) refers to its definition inlocal X="Dog"
but bash-lsp reports line #3 (X="Freddie"
).If I comment
local X="Dog"
, I expect (perhaps incorrectly) that the redefinitionX="Frederik"
should be used but it continues to refer back to line #3 (X="Freddie"
)The text was updated successfully, but these errors were encountered: