Exemplo n.º 1
0
        public FortranCodeNavCore(VisualStudioIDE visualStudio)
        {
            Version = GetType().Assembly.GetName().Version;

            Log.Write(string.Format("Fortran CodeNav {0} initializing...", Version));

            SyntaxTreeMaintainer = new SyntaxTreeMaintainer(visualStudio);
            VisualStudio         = visualStudio;
            VSLogger.RealLogger  = new LogRedirector();

            VisualStudio.FilePassesFilterDelegate = KeepFile;
            VisualStudio.VisualStudioClosing     += VisualStudioClosing;

            // intellisense
            var fortranIntellisense = new FortranIntellisenseProvider(VisualStudio, SyntaxTreeMaintainer);

            IntellisenseController = new VSIntellisense(VisualStudio)
            {
                OnCodeCompleteActivating = fortranIntellisense.OnCodeCompleteActivating,
                OnCodeCompleteUpdating   = fortranIntellisense.OnCodeCompleteUpdating
            };
        }
Exemplo n.º 2
0
 public void ClearCaches()
 {
     SyntaxTreeMaintainer.ClearCaches();
 }