Example #1
0
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await JoinableTaskFactory.SwitchToMainThreadAsync();

            _dte = await GetServiceAsync(typeof(DTE)) as DTE2;

            Assumes.Present(_dte);

            _cache = new CommandTable(_dte);
            OutputWindowTraceListener.Register(Vsix.Name, nameof(VoiceExtension));

            //Telemetry.Initialize(this, Vsix.Version, "c18e8661-f6e6-466d-b968-a6c128506bf4");

            InitializeSpeechRecognition();

            // Setup listening command
            var mcs = await GetServiceAsync(typeof(IMenuCommandService)) as OleMenuCommandService;

            Assumes.Present(mcs);

            var cmd  = new CommandID(PackageGuids.guidVoiceExtensionCmdSet, PackageIds.cmdidMyCommand);
            var menu = new MenuCommand(OnListening, cmd);

            mcs.AddCommand(menu);
        }
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            OutputWindowTraceListener.Register(Vsix.Name, nameof(DevNews));

            await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            await NewsWindowCommand.InitializeAsync(this);
        }
Example #3
0
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            OutputWindowTraceListener.Register(Vsix.Name, nameof(Tweakster));
            WindowsJumpLists.Initialize();

            await AutoSave.InitializeAsync(this);

            await ReOpenDocument.InitializeAsync(this);

            await NoStepDebuggingInDesignMode.InitializeAsync(this);

            await Restart.InitializeAsync(this);

            await DeleteOutputArtifacts.InitializeAsync(this);

            await OutputVerbosity.InitializeAsync(this);

            await ResetZoomLevel.InitializeAsync(this);

            await JustMyCode.InitializeAsync(this);

            await BuildStats.InitializeAsync(this);

            await FindInSolutionExplorer.InitializeAsync(this);

            await OpenLanguageSettings.InitializeAsync(this);

            await CloseActiveDocument.InitializeAsync(this);

            await FocusSolutionExplorer.InitializeAsync(this);

            await DuplicateWindow.InitializeAsync(this);

            await ClearRecentFilesAndProjects.InitializeAsync(this);

            await BrowseSuggestions.InitializeAsync(this);

            //await SelectWholeLineCommand.InitializeAsync(this);
        }