codefori / vscode-rpgle

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

Completion doubles the leading dollar sign #286

Closed jkyeung closed 7 months ago

jkyeung commented 8 months ago

Describe the bug If you have a variable whose name starts with a dollar sign (e.g. $myVar), and you later type a dollar sign, the variable name will show up in the list of possible completions (all well and good so far), but if you then choose to complete it, the entire variable name, including the leading dollar sign, gets written, leaving you with a doubled dollar sign (e.g. $$myVar).

To Reproduce Steps to reproduce the behavior:

  1. Define a variable named $myVar.
  2. Below that, start typing any statement involving that variable, and stop after the '$'.
  3. Choose $myVar from the list of completions.
  4. See error.

Expected behavior The leading '$' is not duplicated.

Screenshots Hopefully this is clear enough without screenshots, but I will provide if needed.

Environment (please complete the following information):

Additional context Nothing relevant I can think of.

worksofliam commented 8 months ago

Similar issue to #285