private IPythonInterpreterFactory CreateFactory(PythonInterpreterInformation info) { return(InterpreterFactoryCreator.CreateInterpreterFactory( info.Configuration, new InterpreterFactoryCreationOptions { PackageManager = BuiltInPackageManagers.Conda, WatchFileSystem = true, NoDatabase = ExperimentalOptions.NoDatabaseFactory, DatabasePath = ExperimentalOptions.NoDatabaseFactory ? DatabasePathSelector.CalculateVSLocalDatabasePath(_site, info.Configuration, 1) : DatabasePathSelector.CalculateGlobalDatabasePath(info.Configuration, PythonTypeDatabase.FormatVersion) } )); }
protected override void CreateFactory() { var dbPath = PathUtils.GetAbsoluteDirectoryPath( Config.PrefixPath, ".ptvs" ); _factory = InterpreterFactoryCreator.CreateInterpreterFactory( Config, new InterpreterFactoryCreationOptions { PackageManager = new PipPackageManager(), WatchFileSystem = true, NoDatabase = ExperimentalOptions.NoDatabaseFactory, DatabasePath = ExperimentalOptions.NoDatabaseFactory ? DatabasePathSelector.CalculateProjectLocalDatabasePath(_factoryProvider._site, Config, 1) : DatabasePathSelector.CalculateProjectLocalDatabasePath(_factoryProvider._site, Config, 0) } ); }
private IPythonInterpreterFactory CreateFactory(PythonInterpreterInformation info) { if (!ExperimentalOptions.NoDatabaseFactory) { return(new LegacyDB.CPythonInterpreterFactory( info.Configuration, new InterpreterFactoryCreationOptions { WatchFileSystem = true, DatabasePath = DatabasePathSelector.CalculateGlobalDatabasePath(info.Configuration, LegacyDB.PythonTypeDatabase.FormatVersion) } )); } 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) } ); } }
private IPythonInterpreterFactory CreateFactory(PythonInterpreterInformation info) { if (!ExperimentalOptions.NoDatabaseFactory) { // Use the database-backed factory var fact = new LegacyDB.CPythonInterpreterFactory( info.Configuration, new InterpreterFactoryCreationOptions { WatchFileSystem = true, DatabasePath = DatabasePathSelector.CalculateGlobalDatabasePath(info.Configuration, LegacyDB.PythonTypeDatabase.FormatVersion) } ); fact.BeginRefreshIsCurrent(); return(fact); } return(InterpreterFactoryCreator.CreateInterpreterFactory( info.Configuration, new InterpreterFactoryCreationOptions { WatchFileSystem = true, DatabasePath = DatabasePathSelector.CalculateVSLocalDatabasePath(_site, info.Configuration, 1) } )); }