// This will be triggered when an HTML document is opened public void VsTextViewCreated(IVsTextView textViewAdapter) { // If the Glyphs haven't been loaded, load them if (GlyphfriendPackage.Glyphs == null) { GlyphfriendPackage.LoadGlyphs(); } }
// This will be triggered when an HTML document is opened public void VsTextViewCreated(IVsTextView textViewAdapter) { // If the Glyphs haven't been loaded, load them if (!GlyphfriendPackage.AreGlyphsLoaded) { GlyphfriendPackage.AreGlyphsLoaded = true; System.Threading.Tasks.Task.Run(() => { GlyphfriendPackage.LoadGlyphs(); }); } }