コード例 #1
0
        protected override void Initialize()
        {
            var dte = GetService(typeof(DTE)) as DTE2;

            var options = (Options)GetDialogPage(typeof(Options));

            CloseOpenDocuments.Initialize(this, dte, options);
            CollapseFolders.Initialize(dte, options);
            SolutionExplorerFocus.Initialize(dte, options);
            DeleteBinFolder.Initialize(dte, options);
            DeleteTestResultsFolder.Initialize(dte, options);
            DeleteDotVsFolder.Initialize(dte, options);
        }
コード例 #2
0
        protected override async task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            await JoinableTaskFactory.SwitchToMainThreadAsync();

            var dte = await GetServiceAsync(typeof(DTE)) as DTE2;

            var options = (Options)GetDialogPage(typeof(Options));

            CloseOpenDocuments.Initialize(this, dte, options);
            CollapseFolders.Initialize(dte, options);
            SolutionExplorerFocus.Initialize(dte, options);
            DeleteBinFolder.Initialize(dte, options);
            DeleteTestResultsFolder.Initialize(dte, options);
            DeleteDotVsFolder.Initialize(dte, options);
            DeleteIISExpressLogsFolder.Initialize(dte, options);
            DeleteIISExpressTraceLogFilesFolder.Initialize(dte, options);
        }
コード例 #3
0
 public static void Initialize(DTE2 dte, Options options)
 {
     Instance = new DeleteBinFolder(dte, options);
 }