Skip to content

Fix timing issue in ChatModel initialize/reinitialize flow#195033

Merged
roblourens merged 4 commits intomainfrom
roblou/anxious-mole
Oct 9, 2023
Merged

Fix timing issue in ChatModel initialize/reinitialize flow#195033
roblourens merged 4 commits intomainfrom
roblou/anxious-mole

Conversation

@roblourens
Copy link
Copy Markdown
Member

@roblourens roblourens enabled auto-merge (squash) October 6, 2023 20:58
@vscodenpa vscodenpa added this to the October 2023 milestone Oct 6, 2023
@roblourens roblourens disabled auto-merge October 6, 2023 21:02
meganrogge
meganrogge previously approved these changes Oct 6, 2023
…. You could deinitialize a model then have it disposed and that is ok
meganrogge
meganrogge previously approved these changes Oct 7, 2023
Copy link
Copy Markdown
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

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

QuickChat still works ok with this change?

@roblourens
Copy link
Copy Markdown
Member Author

Yup

@roblourens roblourens merged commit 55d1cfe into main Oct 9, 2023
@roblourens roblourens deleted the roblou/anxious-mole branch October 9, 2023 02:54
Alex0007 pushed a commit to Alex0007/vscode that referenced this pull request Oct 26, 2023
…#195033)

* Fix timing issue in ChatModel initialize/reinitialize flow
Fix microsoft/vscode-copilot-release#460

* Fix initState usage, better comment

* This is breaking a test but I think it's not really a problem anymore. You could deinitialize a model then have it disposed and that is ok

* Fix another test
@github-actions github-actions bot locked and limited conversation to collaborators Nov 23, 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.

Empty chat view if chat provider is activated while ChatModel is in the middle of being initialized

4 participants