codefori / vscode-rpgle

RPGLE language tools for VS Code
MIT License
39 stars 20 forks source link

Suggested variable name completions have trouble with leading $, @, and # #262

Closed jkyeung closed 9 months ago

jkyeung commented 1 year ago

Describe the bug When a variable's name begins with @ or #, it seems to never show up in the suggested completions. When a variable's name starts with $, it can show up in the suggestions, but accepting it doubles up the $.

To Reproduce Steps to reproduce the behavior:

  1. Declare a variable $myvar (in RPG).
  2. Begin an assignment statement with $m.
  3. Accept the suggested $myvar.
  4. Notice that your cursor now follows $$myvar.

Expected behavior Accepting $myvar results in $myvar, not $$myvar.

Screenshots I will add upon request.

Environment (please complete the following information):

Additional context The behavior for leading @ and # is very different. If that needs to be a separate issue, I can create one.

worksofliam commented 9 months ago

Closing as tracking with #285