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
Fix snippet insertion, Kusto lookup, and duplicate-destroy in unified editor
- String.replace() treats a literal "$" in the replacement as a
special pattern (e.g. "$&", "$1"), so inserting selected text
containing a "$" into a snippet silently mangled it. Pass a
replacer function instead.
- Look up code languages via milkdownCodeLanguages (which includes
Kusto) instead of the unregistered @codemirror/language-data list.
- destroyPrevious() is called fire-and-forget from a sync
constructor, so this.crepe may still be null while initialize()
is pending. Await this.ready first so we always destroy the Crepe
instance instead of leaving initialize() to mount into an element
a newer instance already took over.
0 commit comments