public PythonAnalyzerSession(IServiceManager services, IProgressReporter progress, AsyncManualResetEvent analysisCompleteEvent, Action <Task> startNextSession, CancellationToken analyzerCancellationToken, IDependencyChainWalker <AnalysisModuleKey, PythonAnalyzerEntry> walker, int version, PythonAnalyzerEntry entry) { _services = services; _analysisCompleteEvent = analysisCompleteEvent; _startNextSession = startNextSession; _analyzerCancellationToken = analyzerCancellationToken; Version = version; AffectedEntriesCount = walker?.AffectedValues.Count ?? 1; _walker = walker; _entry = entry; _state = State.NotStarted; _diagnosticsService = _services.GetService <IDiagnosticsService>(); _analyzer = _services.GetService <IPythonAnalyzer>(); _log = _services.GetService <ILogger>(); _telemetry = _services.GetService <ITelemetryService>(); _progress = progress; }
public PythonAnalyzerSession(IServiceContainer services, IProgressReporter progress, Action <Task> startNextSession, CancellationToken analyzerCancellationToken, IDependencyChainWalker <AnalysisModuleKey, PythonAnalyzerEntry> walker, int version, PythonAnalyzerEntry entry, bool forceGC = false) { _services = services; _startNextSession = startNextSession; _analyzerCancellationToken = analyzerCancellationToken; Version = version; AffectedEntriesCount = walker?.AffectedValues.Count ?? 1; _walker = walker; _entry = entry; _state = State.NotStarted; _forceGC = forceGC; _diagnosticsService = _services.GetService <IDiagnosticsService>(); _platformService = _services.GetService <IOSPlatform>(); _analyzer = _services.GetService <IPythonAnalyzer>(); _log = _services.GetService <ILogger>(); _moduleDatabaseService = _services.GetService <IModuleDatabaseService>(); _progress = progress; var interpreter = _services.GetService <IPythonInterpreter>(); _modulesPathResolver = interpreter.ModuleResolution.CurrentPathResolver; _typeshedPathResolver = interpreter.TypeshedResolution.CurrentPathResolver; }
public CodeWindowManager(IVsCodeWindow codeWindow, IWpfTextView textView, IComponentModel componentModel) { _window = codeWindow; _textView = textView; _editorOperationsFactory = componentModel.GetService <IEditorOperationsFactoryService>(); _analyzer = componentModel.GetService <IPythonAnalyzer>(); }
public CodeWindowManager(IVsCodeWindow codeWindow, IWpfTextView textView, IComponentModel componentModel) { _window = codeWindow; _textView = textView; _editorOperationsFactory = componentModel.GetService<IEditorOperationsFactoryService>(); _analyzer = componentModel.GetService<IPythonAnalyzer>(); }
public CacheWriter(IPythonAnalyzer analyzer, IFileSystem fs, ILogger log, string cacheFolder) { _fs = fs; _log = log; _cacheFolder = cacheFolder; _taskQueue = new TaskQueue(Math.Max(1, Environment.ProcessorCount / 4)); _analyzer = analyzer; _analyzer.AnalysisComplete += OnAnalysisComplete; }
public EditFilter(IPythonAnalyzer analyzer, IWpfTextView textView, IVsTextView vsTextView) { _textView = textView; _analyzer = analyzer; ErrorHandler.ThrowOnFailure(vsTextView.AddCommandFilter(this, out _next)); }