internal void ChangeActiveThread(long id, bool verbose)
 {
     if (_activeEvaluator != null)
     {
         PythonThread thread = _activeEvaluator.GetThreads().SingleOrDefault(target => target.Id == id);
         if (thread != null)
         {
             _activeEvaluator.SwitchThread(thread, verbose);
         }
         else
         {
             CurrentWindow.WriteError(Strings.DebugReplInvalidThreadId.FormatUI(id));
         }
     }
     else
     {
         NoProcessError();
     }
 }
Example #2
0
 internal void ChangeActiveThread(long id, bool verbose)
 {
     if (_activeEvaluator != null)
     {
         PythonThread thread = _activeEvaluator.GetThreads().SingleOrDefault(target => target.Id == id);
         if (thread != null)
         {
             _activeEvaluator.SwitchThread(thread, verbose);
         }
         else
         {
             _window.WriteError(String.Format("Invalid thread id '{0}'.", id));
         }
     }
     else
     {
         NoProcessError();
     }
 }
 internal void ChangeActiveThread(long id, bool verbose)
 {
     if (_activeEvaluator != null)
     {
         PythonThread thread = _activeEvaluator.GetThreads().SingleOrDefault(target => target.Id == id);
         if (thread != null)
         {
             _activeEvaluator.SwitchThread(thread, verbose);
         }
         else
         {
             CurrentWindow.WriteErrorLine(Strings.DebugReplInvalidThreadId.FormatUI(id));
         }
     }
     else if (CustomDebugAdapterProtocolExtension.CanUseExperimental())
     {
         NotSupported();
     }
     else
     {
         NoProcessError();
     }
 }