private IPythonInterpreterFactory CreateFactory(PythonInterpreterInformation info) { if (!ExperimentalOptions.NoDatabaseFactory) { var fact = new LegacyDB.CPythonInterpreterFactory( info.Configuration, new InterpreterFactoryCreationOptions { WatchFileSystem = true, DatabasePath = DatabasePathSelector.CalculateGlobalDatabasePath(info.Configuration, LegacyDB.PythonTypeDatabase.FormatVersion) } ); fact.BeginRefreshIsCurrent(); return(fact); } return(new Ast.AstPythonInterpreterFactory( info.Configuration, new InterpreterFactoryCreationOptions { WatchFileSystem = true, DatabasePath = DatabasePathSelector.CalculateVSLocalDatabasePath(_site, info.Configuration, 1) } )); }
protected override void CreateFactory() { if (!ExperimentalOptions.NoDatabaseFactory) { _factory = new LegacyDB.CPythonInterpreterFactory( Config, new InterpreterFactoryCreationOptions { WatchFileSystem = true, DatabasePath = DatabasePathSelector.CalculateProjectLocalDatabasePath(_factoryProvider._site, Config, 0) } ); } else { _factory = InterpreterFactoryCreator.CreateInterpreterFactory( Config, new InterpreterFactoryCreationOptions { WatchFileSystem = true, DatabasePath = DatabasePathSelector.CalculateProjectLocalDatabasePath(_factoryProvider._site, Config, 1) } ); } }