You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
Using decorators, a common pattern is that you want an decoration that applies to a given whole word. None of the current DecorationRangeBehavior values handle this well. Open will always expand the decorator even if you type non-word characters, while Close never expands the decorator
Proposal
Add a DecorationRangeBehavior.Word setting or similar that would expand the decoration if the edit extends the word at the edges of the decoration. Typing a word character would expand the decorator while typing space would not
The text was updated successfully, but these errors were encountered:
From #50779
Problem
Using decorators, a common pattern is that you want an decoration that applies to a given whole word. None of the current
DecorationRangeBehavior
values handle this well.Open
will always expand the decorator even if you type non-word characters, whileClose
never expands the decoratorProposal
Add a
DecorationRangeBehavior.Word
setting or similar that would expand the decoration if the edit extends the word at the edges of the decoration. Typing a word character would expand the decorator while typing space would notThe text was updated successfully, but these errors were encountered: