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)
                }
                    );
            }
Example #2
0
 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)
         }
             );
     }
 }