-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send code to terminal tab in editor group #682
Comments
The Terminals in the editor area is released, looks like we need to support it now. |
On my end, it looks like sending code to the editor terminal does work, but vscode-R then attempts to focus the old terminal panel. Seems like |
Yes, same here, it will unnecessarily reveal the terminal pane, which then gets the focus and sending to active terminal will send code to the shell in terminal instead of the R terminal. Focus again on the R terminal and then things will work as usual. Is there a way to determine if the terminal is in editor? If so, we should reveal the editor tab instead of the terminal pane. |
Right. I've had a look around and I haven't had any luck in determining where the terminal is. |
I had a look at this too and found the same @ElianHugh, there seems to be no way via the API at the moment to identify terminals that are open in the editor area. What I did notice is that if I avoid running So that should mostly work, but if user accidentally opens a new file in the same group as the terminal it could get hidden and not auto show. I noticed there is discussion on the VSCode repo to create the ability to lock editor groups to avoid this: microsoft/vscode#124709 I couldn't find a bug report about the |
Another annoying thing I just noticed is that if the user sets |
Created feature request for option to avoid opening editor area terminals on top of active text editor: microsoft/vscode#129172 |
It seems the |
I tried the latest insider and it works now, but sending code to terminal in editor is still a bit buggy. For example, once we show the terminal and execute "Terminal: Move terminal into editor area", sending code to active terminal might not work at first, then focus the terminal in editor and get back to the editor, and then send code again, now it should work. |
It sounds like we need to make a new bug report! |
This issue is stale because it has been open for 365 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
microsoft/vscode#10546 allows user to move integrated terminal to editor group, which is included in the latest insider build.
However, "Run selection" does not seem to work with the terminal tabs. We might need to take a look at the related API.
The text was updated successfully, but these errors were encountered: