コード例 #1
0
ファイル: DevUtilsPackage.cs プロジェクト: Trass3r/DevUtils
        /////////////////////////////////////////////////////////////////////////////
        // Overridden Package Implementation
        #region Package Members

        /// <summary>
        /// Initialization of the package; this method is called right after the package is sited, so this is the place
        /// where you can put all the initialization code that rely on services provided by VisualStudio.
        /// </summary>
        protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            dte = await GetServiceAsync(typeof(DTE)) as DTE2;

            _statusBar = await GetServiceAsync(typeof(SVsStatusbar)) as IVsStatusbar;

            // switch to the UI thread for command initialization
            await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            _buildEventsHandler = new BuildEventsHandler(this);
            CompilerOutputCmds.Initialize(this);
        }
コード例 #2
0
 public static void Initialize(DevUtilsPackage package)
 {
     Instance = new CompilerOutputCmds(package);
 }