Exemplo n.º 1
0
        private async Task <VsProjectAnalyzer> CreateAnalyzerAsync(IPythonInterpreterFactory factory, string location)
        {
            _site.MustBeCalledFromUIThread();

            var pythonServices = _site.GetPythonToolsService();
            var res            = await VsProjectAnalyzer.CreateForWorkspaceAsync(
                pythonServices.EditorServices,
                factory,
                location
                );

            res.AbnormalAnalysisExit += OnAnalysisProcessExited;

            await UpdateAnalyzerSearchPathsAsync(res);

            return(res);
        }