示例#1
0
        private SourceIndexer CreateSourceIndexer()
        {
            var config = new SourceIndexerConfig();

            config.ExtractDebugStreams = true;
            config.FastMode            = true;
            config.SourceRoot          = this.SourceRootTextBox.Text;
            var indexer = new SourceIndexer();

            indexer.Config = config;
            indexer.PdbPaths.Add(this.PdbPathTextBox.Text);
            indexer.FrontEnd = new GitFrontEnd();
            indexer.BackEnd  = BackendComboBox.SelectedItem as IBackEnd;
            return(indexer);
        }
示例#2
0
        static void ParseSucceeded(Options options)
        {
            var config = new SourceIndexerConfig();

            config.SourceRoot = options.SourceRoot;
            config.FastMode   = options.FastMode;
            config.Logger     = new ConsoleLogger();
            if (options.Verbose)
            {
                config.Logger.Level = VerbosityLevel.Detailed;
            }

            var indexer = new SourceIndexer();

            indexer.Config   = config;
            indexer.FrontEnd = new GitFrontEnd();
            indexer.BackEnd  = GetBackend(options, config.Logger);
            // Set the source root and fetch the repos as soon as possible (threaded)
            indexer.CompileSourceRepositories();
            // Find all pdbs the user requested
            indexer.PdbPaths = FindPdbPaths(options, config.Logger);
            // Actually run the source indexing
            indexer.RunSourceIndexing();
        }