[BUG] Auto-completion gives two closing brackets for Keyword and TestCase setting
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
- Create a new Keyword Name
- Press ENTER, then TAB
- Press "[", this will open two brackets.
- Start entering a valid setting name, such as "Doc"
- 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