4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
6
import { RunOnceScheduler } from '../../../../../../base/common/async.js' ;
7
- import { DisposableStore , toDisposable } from '../../../../../../base/common/lifecycle.js' ;
7
+ import { Disposable , DisposableStore , toDisposable } from '../../../../../../base/common/lifecycle.js' ;
8
8
import { ITransaction , IObservable , observableValue , autorun , transaction } from '../../../../../../base/common/observable.js' ;
9
- import { ObservableDisposable } from '../../../../../../base/common/observableDisposable.js' ;
10
9
import { themeColorFromId } from '../../../../../../base/common/themables.js' ;
11
10
import { URI } from '../../../../../../base/common/uri.js' ;
12
11
import { EditOperation , ISingleEditOperation } from '../../../../../../editor/common/core/editOperation.js' ;
@@ -37,7 +36,7 @@ import { pendingRewriteMinimap } from '../chatEditingModifiedFileEntry.js';
37
36
* Most of the code has been borrowed from there, as a cell is effectively a document.
38
37
* Hence most of the same functionality applies.
39
38
*/
40
- export class ChatEditingNotebookCellEntry extends ObservableDisposable {
39
+ export class ChatEditingNotebookCellEntry extends Disposable {
41
40
private static readonly _lastEditDecorationOptions = ModelDecorationOptions . register ( {
42
41
isWholeLine : true ,
43
42
description : 'chat-last-edit' ,
@@ -60,6 +59,10 @@ export class ChatEditingNotebookCellEntry extends ObservableDisposable {
60
59
} ) ;
61
60
62
61
62
+ public get isDisposed ( ) : boolean {
63
+ return this . _store . isDisposed ;
64
+ }
65
+
63
66
private _edit : StringEdit = StringEdit . empty ;
64
67
private _isEditFromUs : boolean = false ;
65
68
public get isEditFromUs ( ) : boolean {
0 commit comments