-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Test: terminal location API #131278
Comments
I expect that this is probably just my misunderstanding of how viewColumn works but I expected this code to create a new terminal in the 4th editor. If I have a 2 x 3 grid of editors (2 rows of 3 columns) I expected this to create a new terminal in the first editor group in the second row. But instead it creates a new terminal next to whatever editor is active.
|
@meganrogge for testing the |
@Tyriar I debugged and see this.activeTerminal getting appropriately updated when I create a terminal in the editor area or panel or when I focus and switch between them. So not sure how it's not working
|
@meganrogge I was using this code in the "helloWorld" command of the standard "hello world" extension: const terminal = vscode.window.createTerminal({
name: 'august',
message: 'a message',
location: {
viewColumn: ViewColumn.Beside,
parentTerminal: vscode.window.activeTerminal
}
}); When running the "helloWorld" command, new terminals are always added to the panel but not to the editor area. Maybe my interpretation that "activeTerminal only tracks the terminals of the panel" is wrong... |
Refs #45407
Complexity: 3
Authors: @meganrogge, @Tyriar
Create Issue
With proposed API enabled, use the extension-terminal-sample to test the following:
Also, be sure to test splitting terminals in the editor and panel as that should all still work properly and there were a lot of changes that went into this work.
The text was updated successfully, but these errors were encountered: