private static bool EvaluatorUsesThisInterpreter(JReplEvaluator pyEval, IJInterpreterFactory interpreter) { return pyEval != null && pyEval.Interpreter.Id == interpreter.Id && pyEval.Interpreter.Configuration.Version == interpreter.Configuration.Version; }
private static IEnumerable<string> GetActiveInputs(IWpfTextView activeView, JReplEvaluator eval) { foreach (var span in activeView.Selection.SelectedSpans) { foreach (var input in eval.SplitCode(span.GetText())) { yield return input; } } }