Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Chris-Schr opened this issue Apr 9, 2021 · 1 comment
Labels
enhancement New feature or request robotframework-ls

Comments

@Chris-Schr
Copy link

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

@Chris-Schr Chris-Schr added bug Something isn't working robotframework-ls labels Apr 9, 2021
@fabioz fabioz added enhancement New feature or request and removed bug Something isn't working labels Apr 13, 2021
@mardukbp
Copy link
Contributor

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.

@fabioz fabioz closed this as completed in e7445f7 Jul 26, 2021
fabioz pushed a commit that referenced this issue Jul 26, 2021
Dictionary items can now be completed using the syntax

${dict}[some index][another index]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request robotframework-ls
Projects
None yet
Development

No branches or pull requests

3 participants