Created
March 4, 2016 16:37
-
-
Save rionmonster/476180ae30ec79034958 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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