///////////////////////////////////////////////////////////////////////////// // 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); }
public static void Initialize(DevUtilsPackage package) { Instance = new CompilerOutputCmds(package); }