Skip to content

Release 2.3.0

Compare
Choose a tag to compare
@FIameCaster FIameCaster released this 21 Dec 22:13
· 273 commits to main since this release

New features

  • Added a parameter to SearchAPI.search which allows you to change the behavior of whole word search (a585839)
  • The highlightSelectionMatches and highlightCurrentWord extensions now expose their search API which can be used to e.g. get the positions of the current matches (38e9f0b)
  • Added source maps to the package for easier debugging (35c96d3)

Improvements and fixes

  • The matchTags extension now correctly handles name spaced tags and matches tags inside attribute values (3e55338)
  • Improved the tag pattern i both JSX and markup. The attribute value has been made optional, and whitespace is now allowed around =, so <div id=> and <div id = "a"> are now highlighted as tags which improves typing experience. Lastly, JSX tag names and attribute names now allow non-ASCII characters (5553f09)
  • Small improvements to the JavaScript grammar (5553f09)
  • Improved word boundries for searching in the highlightCurrentWord extension (ea955f7)
  • Fixed a couple bugs in the highlightTagPunctuation extension (6dbdb27)
  • Creating an editor or calling setOptions with the value option explicitly set to undefined no longer throws an error (5faa832)
  • Constants are now colored differently in the VS Code Light/Dark themes (2f4f534)