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

fix: use persisted chat session #195959

Merged
merged 1 commit into from Oct 19, 2023
Merged

Conversation

joyceerhl
Copy link
Contributor

@joyceerhl joyceerhl commented Oct 19, 2023

Also don't record init failure on session clear

cc @roblourens

Also don't record init failure on session clear
@joyceerhl joyceerhl self-assigned this Oct 19, 2023
@joyceerhl joyceerhl enabled auto-merge (squash) October 19, 2023 04:36
@VSCodeTriageBot VSCodeTriageBot added this to the October 2023 milestone Oct 19, 2023
sessionId = this.viewState.sessionId;
}

const sessionId = this.getSessionId();
// Render the welcome view if this session gets disposed at any point,
// including if the provider registration fails
const disposeListener = sessionId ? this._register(this.chatService.onDidDisposeSession((e) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this listener could be set up once in the constructor? I think this pattern is fine though. Thanks!

@joyceerhl joyceerhl merged commit c42f896 into main Oct 19, 2023
7 checks passed
@joyceerhl joyceerhl deleted the dev/joyceerhl/previous-ptarmigan branch October 19, 2023 04:50
Alex0007 pushed a commit to Alex0007/vscode that referenced this pull request Oct 26, 2023
Also don't record init failure on session clear
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants