robotcodedev / robotcode

RobotFramework support for Visual Studio Code
https://robotcode.io
Apache License 2.0
168 stars 13 forks source link

[BUG] Auto-completion gives two closing brackets for Keyword and TestCase setting #223

Open gohierf opened 4 months ago

gohierf commented 4 months ago

Describe the bug When adding a new setting such as [Documentation], [Tags] or others to a Keyword or a TestCase, the auto-completion ends up with an additional closing bracket [Documentation]]. This only happens on the first line after the Keyword/TestCase name. It only happens when starting to enter the setting name in the brackets. If using the drop-down menu then the brackets are closed correctly.

To Reproduce

  1. Create a new Keyword Name
  2. Press ENTER, then TAB
  3. Press "[", this will open two brackets.
  4. Start entering a valid setting name, such as "Doc"
  5. Press TAB to accept the suggestion.

This results in [Documentation]].

If step 4 is replaced by:

  1. select Documentation in drop-down menu.

Then it results it the expected [Documentation].

Expected behavior There should be only one closing bracket.

Screenshots/ Videos

https://github.com/d-biehl/robotcode/assets/33861657/df6e5542-e477-4045-b38d-06b11488fe7f

Desktop (please complete the following information):