robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

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

Open gohierf opened this issue 2 years ago • 1 comments

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: 4. 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):

  • VS Code Version 1.86
  • RobotCode Version 0.75.0
  • OS: Windows
  • Python Version 3.11.8
  • RobotFramework Version 7.0
  • RoboCop Version 5.0.3
  • Robotidy Version 4.9.0

gohierf avatar Feb 16 '24 09:02 gohierf