Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit c73869f

Browse files
fix #457: XAML CC inserts ", " in markup extension property value
1 parent db7a4e3 commit c73869f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/AddIns/BackendBindings/XamlBinding/XamlBinding/XamlCompletionItemList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public override void Complete(CompletionContext context, ICompletionItem item)
100100
int spaces = CountWhiteSpacesAtEnd(context.Editor.GetWordBeforeCaret());
101101
int typeNameStart = markup.ExtensionType.IndexOf(':') + 1;
102102

103-
if (!(word == "." || word == "," || word == ":") && markup.ExtensionType.Substring(typeNameStart, markup.ExtensionType.Length - typeNameStart) != word) {
103+
if (!(word == "." || word == "," || word == ":" || word == "=") && markup.ExtensionType.Substring(typeNameStart, markup.ExtensionType.Length - typeNameStart) != word) {
104104
context.Editor.Document.Replace(context.Editor.Caret.Offset - spaces, spaces, ", ");
105105
oldOffset += (2 - spaces);
106106
}

0 commit comments

Comments
 (0)