Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Highlighting positioning is wrong if additional blanks after initial keyword #75

@bio-pepor

Description

@bio-pepor

We have found an issue with the Deveroom extension that results in syntax highlighting of binding parameters to be shifted if there is more than one blank after the initial keyword ("When"/"Then"/"And" etc.).

In the following screenshot, the highlighting of "Ok" is shifted to the left by two characters (highlighting the blank and beginning quotes before the Ok) due to two additional blanks after "And", while the highlighting of "tutorial" is shifted by one character due to one additional blank after "Then":
image

When removing the additional blanks after "And" and "Then", highlighting looks as expected:
image

If we have there is one additional blank after the "And" in the first line (so two in total), the highlighting on "Ok" is shifted by one character:
image

This effect can be observed in all our Gherkin files on all developers' machines. It is also not a new effect - we have seen it for quite some time.

Software info:
Visual Studio 2019, Version 16.11.8
Deveroom for Specflow, Version 1.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions