diff --git a/src/Editor/EditorFeatures.cs b/src/Editor/EditorFeatures.cs index 957816b..9094e4b 100644 --- a/src/Editor/EditorFeatures.cs +++ b/src/Editor/EditorFeatures.cs @@ -85,7 +85,7 @@ internal sealed class BraceMatchingTaggerProvider : BraceMatchingBase public class SameWordHighlighter : SameWordHighlighterBase { } - //[Export(typeof(IWpfTextViewCreationListener))] + [Export(typeof(IWpfTextViewCreationListener))] [ContentType(Constants.LanguageName)] [TextViewRole(PredefinedTextViewRoles.PrimaryDocument)] public class HideMargings : WpfTextViewCreationListener diff --git a/src/MarkdownEditor2022Package.cs b/src/MarkdownEditor2022Package.cs index b0f9bf9..f38ff96 100644 --- a/src/MarkdownEditor2022Package.cs +++ b/src/MarkdownEditor2022Package.cs @@ -20,7 +20,7 @@ namespace MarkdownEditor2022 [ProvideLanguageEditorOptionPage(typeof(OptionsProvider.AdvancedOptions), Constants.LanguageName, "", "Advanced", null, 0)] [ProvideLanguageExtension(typeof(LanguageFactory), Constants.FileExtension)] - [ProvideEditorFactory(typeof(LanguageFactory), 0, CommonPhysicalViewAttributes = (int)__VSPHYSICALVIEWATTRIBUTES.PVA_SupportsPreview, TrustLevel = __VSEDITORTRUSTLEVEL.ETL_AlwaysTrusted)] + [ProvideEditorFactory(typeof(LanguageFactory), 0, false, CommonPhysicalViewAttributes = (int)__VSPHYSICALVIEWATTRIBUTES.PVA_SupportsPreview, TrustLevel = __VSEDITORTRUSTLEVEL.ETL_AlwaysTrusted)] [ProvideEditorLogicalView(typeof(LanguageFactory), VSConstants.LOGVIEWID.TextView_string, IsTrusted = true)] [ProvideEditorExtension(typeof(LanguageFactory), Constants.FileExtension, 1000)]