Skip to content

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

Open
@gohierf

Description

@gohierf

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

Recording.2024-02-16.105700.mp4

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneeds-fixThis issue needs to be fixed

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions