Skip to content

Commit e99b83d

Browse files
committed
Fix microsoft#62340 - don't try to update text model after it's been disposed
1 parent af1b4eb commit e99b83d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/vs/workbench/services/preferences/common/preferencesModels.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,10 @@ export class DefaultSettingsEditorModel extends AbstractSettingsModel implements
722722
}
723723

724724
protected update(): IFilterResult {
725+
if (this._model.isDisposed()) {
726+
return null;
727+
}
728+
725729
// Grab current result groups, only render non-empty groups
726730
const resultGroups = map
727731
.values(this._currentResultGroups)

0 commit comments

Comments
 (0)