Double double-quote is added when adding quotes to a non-quoted bound item at the end of a line
Eilon opened this issue · comments
Eilon Lipton commented
Yes, it's a mouthful.
- Create a tag helper
<whatever>
that has some bound property,int Foo { get; set; }
- Use this tag helper in a Razor page
- Have this in the editor:
<whatever
>
</whatever>
- On the EMPTY LINE type
foo=
and you'll get auto-double-quotes (that's fine) - Erase the double quotes and type in
123
- Then move the caret between the
=
and the1
and add either a single quote'
or double quote"
(repros with either) - Now go to the end of that line to add the closing single/double quote
- RESULT: You get a double-double-quote (or double-single-quote)
This only seems to happen with bound properties (i.e. C# stuff) and only at the end of the line. There could be more cases but that's all I was able to find.
N. Taylor Mullen commented
/cc @ToddGrun @barrytang
Barry Tang commented
@NTaylorMullen, if you think this is a tooling bug, can you open a tooling-internal issue or a TFS bug? Thanks!
N. Taylor Mullen commented