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

Commit 4d8c808

Browse files
fix XAML CC tests
1 parent 9cd3cc5 commit 4d8c808

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/AddIns/BackendBindings/XamlBinding/XamlBinding/CompletionDataGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ IList<ICompletionItem> CreateAttributeList(XamlCompletionContext context, bool i
270270
string xamlPrefix = context.XamlNamespacePrefix;
271271
string xKey = string.IsNullOrEmpty(xamlPrefix) ? "" : xamlPrefix + ":";
272272

273-
list.AddRange(XamlConst.GetAllowedItems(context).Select(item => new XamlCompletionItem(item)));
273+
if (context.Description == XamlContextDescription.InTag)
274+
list.AddRange(XamlConst.GetAllowedItems(context).Select(item => new XamlCompletionItem(item)));
274275

275276
if (string.Equals(lastElement.Prefix, context.XamlNamespacePrefix, StringComparison.OrdinalIgnoreCase) && XamlConst.IsBuiltin(lastElement.LocalName))
276277
return list;

0 commit comments

Comments
 (0)