robocorp / robotframework-lsp

Robocorp extensions for VS Code: Robocorp Code and RFW LSP
https://robocorp.com/docs/developer-tools/visual-studio-code
Apache License 2.0
205 stars 93 forks source link

Accessing a dict/list variable with &/@ is not recognized in autocompletion #301

Closed Chris-Schr closed 3 years ago

Chris-Schr commented 3 years ago

Describe the bug When I create a dict &{variable} or a list @{variable} and want to access it with ${variable} it is not recognized in autocompletion. I also does not find the variable when holding ctrl+click.

To Reproduce example code: Variables &{test} fdj=dfk dfkj=dkf

Test Cases
Test Log to Console ${test}

Expected behavior Autocompletion should work

Versions: OS: Windows 10 Robot Framework Version: 3.2.1 Robot Framework Language Server Version: v0.12.0 Client Version: VSCode 1.54.3

mardukbp commented 3 years ago

I just submited a pull request that implements completion for dictionary variable names and another pull request that implements completion for dictionary items, even for nested dictionaries.