Skip to content

Commit

Permalink
Fix per-item CommitCharacters
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutch committed Apr 30, 2024
1 parent dbdfe8b commit 5cc7069
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Editor/Completion/AbstractCompletionCommitManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ CommitResult TryCommitInternal (IAsyncCompletionSession session, ITextBuffer buf
if (!IsCommitCharForTriggerKind (trigger, session, buffer.CurrentSnapshot, typedChar)) {
return CommitCancel;
}
} else if (item.CommitCharacters.Contains (typedChar)) {
} else if (!item.CommitCharacters.Contains (typedChar)) {
return CommitCancel;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Editor/Completion/XmlCompletionCommitManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected override CommitResult TryCommitItemKind (XmlCompletionItemKind itemKin

switch (itemKind) {
case XmlCompletionItemKind.SelfClosingElement: {
//comitting self-closing element with > makes it non-self-closing
//committing self-closing element with > makes it non-self-closing
if (typedChar == '>') {
goto case XmlCompletionItemKind.Element;
}
Expand Down

0 comments on commit 5cc7069

Please sign in to comment.