internal Task <VsProjectAnalyzer> CreateAnalyzerAsync(IPythonInterpreterFactory factory) { if (factory == null) { return(VsProjectAnalyzer.CreateDefaultAsync(EditorServices, InterpreterFactoryCreator.CreateAnalysisInterpreterFactory(new Version(2, 7)))); } return(VsProjectAnalyzer.CreateDefaultAsync(EditorServices, factory)); }
internal Task <VsProjectAnalyzer> CreateAnalyzerAsync(IPythonInterpreterFactory factory) { if (factory == null) { var configuration = new VisualStudioInterpreterConfiguration("AnalysisOnly|2.7", "Analysis Only 2.7", version: new Version(2, 7)); factory = InterpreterFactoryCreator.CreateInterpreterFactory(configuration); } return(VsProjectAnalyzer.CreateDefaultAsync(EditorServices, factory)); }
private Task <VsProjectAnalyzer> CreateAnalyzerAsync() { var interpreters = _interpreterOptionsService.Value; // may not available in some test cases if (interpreters == null) { return(VsProjectAnalyzer.CreateDefaultAsync(EditorServices, InterpreterFactoryCreator.CreateAnalysisInterpreterFactory(new Version(2, 7)))); } var defaultFactory = interpreters.DefaultInterpreter; EnsureCompletionDb(defaultFactory); return(VsProjectAnalyzer.CreateDefaultAsync(EditorServices, defaultFactory)); }