private async Task ShowHelpAsync(string command, VsRHostScript hostScript, RHostClientHelpTestApp clientApp) { clientApp.Reset(); await hostScript.Session.ExecuteAsync($"rtvs:::show_help({command.ToRStringLiteral()})").SilenceException <RException>(); await clientApp.WaitForReadyAndRenderedAsync(DoIdle, nameof(HelpTest)); }
private async Task ExecCommandAsync(RHostClientHelpTestApp clientApp, IAsyncCommand command) { clientApp.Reset(); await UIThreadTools.InUI(command.InvokeAsync); await clientApp.WaitForReadyAndRenderedAsync(DoIdle, nameof(HelpTest)); }
private async Task ExecCommandAsync(RHostClientHelpTestApp clientApp, int commandId) { clientApp.Reset(); await UIThreadHelper.Instance.InvokeAsync(() => { object o = new object(); clientApp.Component.Controller.Invoke(RGuidList.RCmdSetGuid, commandId, null, ref o); }); await clientApp.WaitForReadyAndRenderedAsync((ms) => DoIdle(ms), nameof(HelpTest)); }