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

Revert change to always update status #181755

Closed
Tracked by #20822
Tyriar opened this issue May 7, 2023 · 3 comments · Fixed by #182067
Closed
Tracked by #20822

Revert change to always update status #181755

Tyriar opened this issue May 7, 2023 · 3 comments · Fixed by #182067
Assignees
Labels
debt Code quality issues insiders-released Patch has been released in VS Code Insiders
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented May 7, 2023

Just saw #180903, this goes against the design. It's meant to only add the status if it doesn't already exist, if the status changed then it should use a different id and/or remove the old status first.

@karrtikr
Copy link
Contributor

karrtikr commented May 9, 2023

@Tyriar I'm not clear on the solution. There're a limited number of Terminal Status IDs:

export const enum TerminalStatus {
Bell = 'bell',
Disconnected = 'disconnected',
RelaunchNeeded = 'relaunch-needed',
EnvironmentVariableInfoChangesActive = 'env-var-info-changes-active',
ShellIntegrationAttentionNeeded = 'shell-integration-attention-needed'
}

In this case status ID hasn't changed, it's still EnvironmentVariableInfoChangesActive, only the description which comes with it has updated.

@Tyriar Tyriar self-assigned this May 10, 2023
@Tyriar
Copy link
Member Author

Tyriar commented May 10, 2023

@karrtikr working on it, I'll send a PR to you in a bit

@karrtikr
Copy link
Contributor

Verification steps:

Validate #180851 still doesn't happen.

@vscodenpa vscodenpa added unreleased Patch has not yet been released in VS Code Insiders insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels May 11, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jun 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debt Code quality issues insiders-released Patch has been released in VS Code Insiders
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants