You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: component browser: insert double-indents when the cursor is already indented #329
Insert puts the generated text at the cursor as-is, and that text already carries its own indent. With the cursor on an indented empty line, which is where you'd normally be after pressing Enter under include:, only the first line gets the extra indent. inputs: ends up at the same column as the -, which is invalid YAML.
Steps to reproduce
Open a file with include: and put the cursor on the next line, indented two spaces.
Run GitLab CI: Browse Components, open Details on any component with inputs and tick a few.
Click Insert Component.
Expected behavior
The include lines up under include: no matter where the cursor sits on the line.
Actual behavior
The first line is indented twice, the rest once, and the YAML no longer parses.
Component context (if applicable)
Any component. Seen with components/secret-detection.
Activity