コード例 #1
0
ファイル: BooSource.cs プロジェクト: stefandd/Boo-Plugin
 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 }
             );
 }
コード例 #2
0
        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
            });
        }