Skip to content

[Bug] Trailing Semicolon Is Removed on Autocomplete Insert #119

@kaji2

Description

@kaji2

In version 2.8.3, inserting a CSS variable via autocomplete removes an existing trailing semicolon.
This issue does not occur in version 2.8.2.

Environment

  • VSCode: 1.107.1
  • OS: Windows 11 (25H2)

Steps to Reproduce

  1. Prepare the following CSS code, where | indicates the cursor position:
.foo {
 color: |;
}
  1. Trigger autocomplete and insert --color.

Expected Behavior (v2.8.2)

The semicolon at the end of the line should be preserved:

.foo {
  color: var(--color);
}

Actual Behavior (v2.8.3)

The semicolon is removed after insertion:

.foo {
  color: var(--color)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions