Skip to content
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

All powershell text turns yellow on reload #127499

Closed
andreamah opened this issue Jun 29, 2021 · 4 comments
Closed

All powershell text turns yellow on reload #127499

andreamah opened this issue Jun 29, 2021 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities terminal General terminal issues that don't fall under another label windows VS Code on Windows issues
Milestone

Comments

@andreamah
Copy link
Contributor

Testing #127192

Steps:

  1. Create side-by-side terminal editor tabs.
  2. Type some stuff in one of the editors and then reload.
  3. Do the same with the other editor.
  4. The second editor should turn yellow
Recorded.with.FlexClip.Screen.Recorder.mp4
@Tyriar Tyriar added bug Issue identified by VS Code Team member as probable bug terminal General terminal issues that don't fall under another label windows VS Code on Windows issues labels Jun 29, 2021
@Tyriar Tyriar added this to the June 2021 milestone Jun 29, 2021
@Tyriar
Copy link
Member

Tyriar commented Jun 29, 2021

I'm guessing reply is happening twice, so the cursor which is yellow goes back to the top left and rewrites everything in that.

@Tyriar
Copy link
Member

Tyriar commented Jun 30, 2021

Code pointer:

async handleReplay(e: IPtyHostProcessReplayEvent) {
try {
this._inReplay = true;
for (const innerEvent of e.events) {
if (innerEvent.cols !== 0 || innerEvent.rows !== 0) {
// never override with 0x0 as that is a marker for an unknown initial size
this._onProcessOverrideDimensions.fire({ cols: innerEvent.cols, rows: innerEvent.rows, forceExactSize: true });
}
const e: IProcessDataEvent = { data: innerEvent.data, trackCommit: true };
this._onProcessData.fire(e);
await e.writePromise;
}
} finally {
this._inReplay = false;
}
// remove size override
this._onProcessOverrideDimensions.fire(undefined);
}

Moving out of June as it's kind of hard to repro and it's just a visual glitch. I had a quick look but couldn't see why it's happening exactly, I'm guessing it's related to how conpty/powershell will re-write the screen whenever it's resized.

@Tyriar Tyriar modified the milestones: June 2021, Backlog Jun 30, 2021
@Tyriar Tyriar added the help wanted Issues identified as good community contribution opportunities label Jun 30, 2021
@Tyriar
Copy link
Member

Tyriar commented Oct 19, 2021

I believe this is already fixed, can you see if you can reproduce in the Insiders build?

@Tyriar Tyriar closed this as completed Oct 19, 2021
@andreamah
Copy link
Contributor Author

The terminal editor now doesn't re-open upon window reload (I'm assuming this is expected behavior), so technically the original issue is resolved.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug help wanted Issues identified as good community contribution opportunities terminal General terminal issues that don't fall under another label windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

3 participants