-
Notifications
You must be signed in to change notification settings - Fork 30k
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
API to retrieve a dimensions from a given Terminal instance #55718
Comments
Would exposing this would also solve the issue? export interface TerminalRenderer {
dimensions: TerminalDimensions | undefined;
readonly onDidChangeDimensions: Event<TerminalDimensions>;
} |
@Tyriar Yes. That'd solve it. In addition to that we need a method to get a renderer instance: vscode.window.onDidOpenTerminal(async terminal => {
// HOW to get a renderer instance out of the terminal?
const render = terminal.renderer;
renderer.onDidChangeDimensions(d => { … });
await this.terminalProvider.shareTerminal(terminal, this.trace);
}); |
Opps, copy and paste mistake above, I mean adding those properties on export interface Terminal {
dimensions: TerminalDimensions;
readonly onDidChangeDimensions: Event<TerminalDimensions>;
} |
Sure. That'd be sufficient to meet our needs! |
This API is still in proposed. |
I didn't actually want this verified, it will be looked at with #58660 |
Related: #79246 |
AFAIK this API isn't being used yet as #79246 is needed. vscode/src/vs/vscode.proposed.d.ts Lines 808 to 840 in 94c6893
|
VS Live Share extension needs to know current dimensions of a terminal and also to get notified when they're getting changed.
Consider adding a new API to get read-only access to a terminal renderer associated with given terminal instance.
The text was updated successfully, but these errors were encountered: