File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/vs/workbench/contrib/chat/browser/chatEditing/notebook Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,8 @@ class ChatEditingNotebookEditorWidgetIntegration extends Disposable implements I
139
139
if ( ! notebookEditor ) {
140
140
return ;
141
141
}
142
- originalReadonly ??= notebookEditor . isReadOnly ;
143
142
if ( isReadOnly ) {
143
+ originalReadonly ??= notebookEditor . isReadOnly ;
144
144
notebookEditor . setOptions ( { isReadOnly : true } ) ;
145
145
} else if ( originalReadonly === false ) {
146
146
notebookEditor . setOptions ( { isReadOnly : false } ) ;
@@ -160,7 +160,7 @@ class ChatEditingNotebookEditorWidgetIntegration extends Disposable implements I
160
160
disposable . dispose ( ) ;
161
161
} , 100 ) ;
162
162
const disposable = toDisposable ( ( ) => clearTimeout ( timeout ) ) ;
163
- this . _register ( disposable ) ;
163
+ r . store . add ( disposable ) ;
164
164
}
165
165
} ) ) ;
166
166
You can’t perform that action at this time.
0 commit comments