Skip to content

Commit

Permalink
call layout more
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed Mar 10, 2023
1 parent a39a500 commit 0053a85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/terminal/browser/media/xterm.css
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,5 @@
}

.hide {
opacity: 0;
visibility: hidden;
}
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
this._register(toDisposable(() => this._dndObserver?.dispose()));

this._containerReadyBarrier = new AutoOpenBarrier(Constants.WaitForContainerThreshold);
this._attachBarrier = new AutoOpenBarrier(1000);
this._attachBarrier = new AutoOpenBarrier(3000);
this._xtermReadyPromise = this._createXterm();
this._xtermReadyPromise.then(async () => {
// Wait for a period to allow a container to be ready
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export class AccessibleBufferWidget extends DisposableStore {
if (insertion && model && lineCount > this._xterm.raw.rows) {
const lineNumber = lineCount + 1;
model.pushEditOperations(null, [{ range: { startLineNumber: lineNumber, endLineNumber: lineNumber, startColumn: 1, endColumn: 1 }, text: await this._getContent(lineNumber - 1) }], () => []);
return;
} else {
model = await this._getTextModel(URI.from({ scheme: `${AccessibleBufferConstants.Scheme}-${this._instanceId}`, fragment: await this._getContent() }));
}
Expand Down Expand Up @@ -142,6 +141,7 @@ export class AccessibleBufferWidget extends DisposableStore {
async show(): Promise<void> {
await this._updateEditor();
this._accessibleBuffer.tabIndex = -1;
this._bufferEditor.layout({ width: this._xtermElement.clientWidth, height: this._xtermElement.clientHeight });
this._accessibleBuffer.classList.add(AccessibleBufferConstants.Active);
this._xtermElement.classList.add(AccessibleBufferConstants.Hide);
}
Expand Down

0 comments on commit 0053a85

Please sign in to comment.