public LogWindow(Package package, AddinContext context) { FPackage = package; FContext = context; FWindow = context.Application.ToolWindows.OutputWindow.OutputWindowPanes.Item("Build"); FProvider = new ErrorListProvider(FPackage); FProvider.ProviderGuid = GuidList.guidSqlinePkg; FProvider.ProviderName = "Sqline"; FVsSolution = (IVsSolution)Package.GetGlobalService(typeof(IVsSolution)); }
protected override async System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress) { FContext = new AddinContext((DTE2)GetService(typeof(SDTE)), this); FLog = new LogWindow(this, FContext); FDocumentEvents = Context.Application.Events.get_DocumentEvents(null); FDocumentEvents.DocumentSaved += OnDocumentSaved; FContext.Application.Events.BuildEvents.OnBuildDone += BuildEvents_OnBuildDone; FContext.Application.Events.BuildEvents.OnBuildBegin += OnBuildBegin; await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken); await base.InitializeAsync(cancellationToken, progress); }
public ItemFileGenerator(AddinContext context, Document document) { FContext = context; FDocument = document; FFileInfo = new FileInfo(FDocument.FullName).GetCorrectlyCasedFileInfo(); }
public DataItemGenerator(AddinContext context, Project project) { FContext = context; FProject = project; }
public ProjectHandlerGenerator(AddinContext context, Project project) { FContext = context; FProject = project; }