Skip to content

Instantly share code, notes, and snippets.

@rionmonster
Created March 4, 2016 16:37
Show Gist options
  • Save rionmonster/476180ae30ec79034958 to your computer and use it in GitHub Desktop.
Save rionmonster/476180ae30ec79034958 to your computer and use it in GitHub Desktop.
[Export(typeof(IVsTextViewCreationListener))]
[ContentType("aspx")]
[TextViewRole(PredefinedTextViewRoles.Document)]
class AspxTextViewListener : IVsTextViewCreationListener
{
// 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();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment