deveroom-visualstudio icon indicating copy to clipboard operation
deveroom-visualstudio copied to clipboard

Highlighting positioning is wrong if additional blanks after initial keyword

Open bio-pepor opened this issue 2 years ago • 0 comments

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

bio-pepor avatar Feb 16 '22 11:02 bio-pepor