Fix bracketed paste on Windows#149
Conversation
|
Thanks! Is there a way to test this without Node.js etc installed? |
|
@Hong-Revo Not that I know of. I’m hoping to finish testing it this weekend. |
|
@Ikuyadeu I have done some more testing and I think this PR is ready. |
|
@andycraig Thank you for your continuous work! For future maintenance work, I have one small question.
If it is based on your test experience, OK! I merge now. |
|
OK, I will merge this. |
|
@Ikuyadeu Great, thank you! |
|
I don’t know much about vscode terminal but radian indeed supports bracketed paste mode in Windows. |
|
@randy3k I’m sure that’s true but something in the combination of Windows + VSCode + bracketed paste mode + radian doesn’t work. The VSCode Julia extension uses the same solution (bracketed paste mode on Mac/Linux, no bracketed paste mode on Windows) so I’m pretty sure the problem is on the Windows + VSCode side. |
Fixes #117
What problem did you solve?
Quoting @Hong-Revo from #117 (comment)
This PR makes two changes:
How can I check this pull request?
r.bracketedPastesetting not enabled, enable it and restart VSCodetemp-R/temp.R:R: Run Selection/Line in Active Terminal+in the text sent to the console, and no need to hit Enter in the console for it to make it process the codeFor full testing, this should also be tried in the following configurations:
r.bracketedPastenot enabled, in normal Rr.bracketedPasteenabled, in radianr.bracketedPastenot enabled, in normal RI've tried these on Linux but I don't have access to a Mac.
Notes
This PR means that setting
r.bracketedPasteon Windows doesn't actually use bracketed paste ANSI control characters. I think it's probably easier to just leave the setting name and description as-is, but open to discussion if anyone thinks it will make things too confusing.I think this PR is probably fine as is but I would like to do a bit more testing. I will remove 'WIP' after that.