We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d99c66c commit 6732c27Copy full SHA for 6732c27
src/vs/workbench/contrib/chat/browser/chatWidget.ts
@@ -439,6 +439,9 @@ export class ChatWidget extends Disposable implements IChatWidget {
439
}
440
}));
441
this.viewModelDisposables.add(this.viewModel.onDidDisposeModel(() => {
442
+ // Ensure that view state is saved here, because we will load it again when a new model is assigned
443
+ this.inputPart.saveState();
444
+
445
// Disposes the viewmodel and listeners
446
this.viewModel = undefined;
447
this.onDidChangeItems();
0 commit comments