public BellyRubProxy(string token, BellyEngine engine, Browser browser) { _token = token; _engine = engine; _browser = browser; _engine .On("engine-pause", m => _client.PauseEngine()) .On("engine-resume", m => _client.ResumeEngine()) .On("build-test-all", m => _client.RunAll()) .On("abort-run", m => _client.AbortRun()) .On("detect-recursion-on-next-run", m => _client.RunRecursiveRunDetection()) .On("goto", msg => _client.GoTo(msg.file.ToString(), (int)msg.line, (int)msg.column)) .On("focus-editor", msg => _client.FocusEditor()) .RespondTo("get-token-path", (msg, respondWith) => respondWith(new { token = _token }) ); _handlers = new Handler[] { new StatusEventHandler(), new ShutdownEventHandler(), new FocusEventHandler(_browser), new RunEventHandler(), new RunItemEventHandler(), new InformationEventsHandler() }; foreach (var handler in _handlers) { handler.DispatchThrough((msg, o) => _engine.Send(msg, o)); } }
public void IncomingMessage(object message) { if (message.GetType().Equals(typeof(RunFinishedMessage))) { if (_shoudlResume) { _shoudlResume = false; _client.ResumeEngine(); } } }
public static bool CannotDebug(EnvDTE80.DTE2 app, CacheTestMessage test) { lock (_dirtyRealtimeDocuments) { clearOutdatedRealtimeChanges(""); var inRealtime = _dirtyRealtimeDocuments.Count != 0; if (inRealtime) { _client.PauseEngine(); System.Threading.Thread.Sleep(1000); app.ExecuteCommand("File.SaveAll"); _client.ResumeEngine(); } } return(false); }
public void Exec(vsCommandExecOption ExecuteOption, ref object VariantIn, ref object VariantOut, ref bool Handled) { Logger.Write("Resuming engine"); _client.ResumeEngine(); Connect._control.Connecting(0, false); }