Thread execute argument through to term.sendText()#585
Thread execute argument through to term.sendText()#585andycraig merged 7 commits intoREditorSupport:masterfrom
Conversation
|
Thanks for the PR! Can you try running this at the command line before pressing F5? That will hopefully fix the error. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Works for me now.
|
|
I forgot to mention: the console message changed, "inserting" is shown with |
|
Done, tests succeed now. What's a good location for a test of this functionality? |
|
We don't have any unit tests for these functions that call Sounds like it's ready for review? |
|
Yes, the implementation works for me. |
andycraig
left a comment
There was a problem hiding this comment.
I've added a couple of minor notes, and everything else looks good.
I think you're using this with {fledge}, right? Could you write down the steps I can follow to cause it to send some text to the console without executing it? I'll follow those steps to test this PR. Thanks!
Co-authored-by: Andrew Craig <andy.peter.craig@gmail.com>
|
I test with: rstudioapi::sendToConsole("test()", execute = FALSE)
rstudioapi::sendToConsole("test(\n)", execute = FALSE)I have tested the following combinations:
|
andycraig
left a comment
There was a problem hiding this comment.
LGTM and works as described. Thank you for the PR!
Closes #575.
I have no Idea if this code works, can't build: seeing
Error: Cannot find module 'copy-webpack-plugin'when pressing F5 or Ctrl + Shift + B in VS Code.There must be a better way to detect the last item in an iteration.
This code now also avoids the delay before the first line in non-bracketed paste.