public BooFileNode(ProjectNode root, ProjectElement e) : base(root, e) { results = new CompileResults(() => Url, GetCompilerInput, ()=>GlobalServices.LanguageService.GetLanguagePreferences().TabSize); languageService = (BooLanguageService)GetService(typeof(BooLanguageService)); hidden = true; }
public BooTypeAndMemberDropdownBars(BooLanguageService service, IFileNode fileNode) : base(service) { this.service = service; isDirty = true; fileNode.Recompiled += SourceRecompiled; barManager = new DropdownBarsManager(fileNode); }
public BooSource(BooLanguageService service, string filePath, IVsTextLines buffer, Microsoft.VisualStudio.Package.Colorizer colorizer) : base(service, buffer, colorizer) { projectManager = GlobalServices.GetProjectManagerForFile(filePath); fileNode = projectManager.GetFileNode(filePath); fileNode.ShowMessages(); fileNode.Recompiled += (sender, eventArgs) => service.Invoke( new Action <BooLanguageService>(SynchronizeDropDowns), new object[] { service } ); }
public BooSource(BooLanguageService service, string filePath, IVsTextLines buffer, Microsoft.VisualStudio.Package.Colorizer colorizer) : base(service, buffer, colorizer) { projectManager = GlobalServices.GetProjectManagerForFile(filePath); fileNode = projectManager.GetFileNode(filePath); fileNode.ShowMessages(); fileNode.Recompiled += (sender, eventArgs) => service.Invoke( new Action<BooLanguageService>(SynchronizeDropDowns), new object[] {service} ); }
internal static void Register(IServiceContainer container) { // Proffer the service. var langService = new BooLanguageService(); langService.SetSite(container); ((IComponentModel)langService.GetService(typeof(SComponentModel))).DefaultCompositionService.SatisfyImportsOnce(langService); container.AddService(typeof(BooLanguageService), langService, true); langService.Start(); // as stupid as it looks this timer is necessary to keep the parsing thread alive // without it the parsing thread will be shut down after 10 sec of inactivity, which means that // the next parsing request will trigger creating of a different parsing thread which will break // the type resolver supplied by DynamicTypeService langService.keepAliveTimer = new System.Threading.Timer(langService.KeepAlive, langService, 7000, 7000); }
static void SynchronizeDropDowns(BooLanguageService service) { service.SynchronizeDropdowns(); }