File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,16 @@ export class CellDiagnostics extends Disposable {
38
38
) {
39
39
super ( ) ;
40
40
41
- this . updateEnabled ( ) ;
41
+ if ( cell . viewType !== 'interactive' ) {
42
+ this . updateEnabled ( ) ;
42
43
43
- this . _register ( inlineChatService . onDidChangeProviders ( ( ) => this . updateEnabled ( ) ) ) ;
44
- this . _register ( configurationService . onDidChangeConfiguration ( ( e ) => {
45
- if ( e . affectsConfiguration ( NotebookSetting . cellFailureDiagnostics ) ) {
46
- this . updateEnabled ( ) ;
47
- }
48
- } ) ) ;
44
+ this . _register ( inlineChatService . onDidChangeProviders ( ( ) => this . updateEnabled ( ) ) ) ;
45
+ this . _register ( configurationService . onDidChangeConfiguration ( ( e ) => {
46
+ if ( e . affectsConfiguration ( NotebookSetting . cellFailureDiagnostics ) ) {
47
+ this . updateEnabled ( ) ;
48
+ }
49
+ } ) ) ;
50
+ }
49
51
}
50
52
51
53
private updateEnabled ( ) {
@@ -103,4 +105,9 @@ export class CellDiagnostics extends Disposable {
103
105
} ;
104
106
}
105
107
108
+ override dispose ( ) {
109
+ super . dispose ( ) ;
110
+ this . clear ( ) ;
111
+ }
112
+
106
113
}
You can’t perform that action at this time.
0 commit comments