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 override Source CreateSource(IVsTextLines buffer) { var filePath = FilePathUtilities.GetFilePath(buffer); if (GlobalServices.GetProjectManagerForFile(filePath) == null) { return(base.CreateSource(buffer)); } return(new BooSource(this, filePath, buffer, GetColorizer(buffer)) { LastParseTime = 0 }); }