Beispiel #1
0
        protected override void Initialize()
        {
            base.Initialize();
            PkgSource.Initialize(this);
            PkgSource.VsVersion = FindVSVersion();
            InitializeTelemetry();
            InitializeActivityLog();

            if (GetService(typeof(IMenuCommandService)) is OleMenuCommandService mcs)
            {
                InitializeViewMenuCommands(mcs);
                InitializeTextEditorCommands(mcs);
            }

            this.AddOptionKey(USER_OPTIONS_KEY);
        }
Beispiel #2
0
        protected override void Initialize()
        {
            base.Initialize();
            LogInfo("Initializing VsfPackage");
            PkgSource.Initialize(this);
            PkgSource.VsVersion = FindVSVersion();
            InitializeTelemetry();
            InitializeActivityLog();

            this.FontChanger = new PresentationModeFontChanger(this);

            OleMenuCommandService mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService;

            if (null != mcs)
            {
                InitializeViewMenuCommands(mcs);
                InitializeTextEditorCommands(mcs);
            }

            this.AddOptionKey(USER_OPTIONS_KEY);
        }