File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/test/datascience/widgets Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -194,13 +194,19 @@ function hijackLogging() {
194
194
category : channel
195
195
} ) ;
196
196
} ;
197
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
198
+ globalThis . console = { } as any ;
197
199
[ 'log' , 'error' , 'warn' ] . forEach ( ( channel ) => {
198
200
// eslint-disable-next-line @typescript-eslint/no-explicit-any
199
- const originalConsoleLogger = ( console as any ) [ channel ] as unknown as Function ;
201
+ // const originalConsoleLogger = (console as any)[channel] as unknown as Function;
200
202
// eslint-disable-next-line @typescript-eslint/no-explicit-any
201
203
( console as any ) [ channel ] = ( ...args : any [ ] ) => {
202
204
logMessage ( 'log' , args ) ;
203
- originalConsoleLogger ( ...args ) ;
205
+ // originalConsoleLogger(...args);
206
+ } ;
207
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
208
+ ( globalThis . console as any ) [ channel ] = ( ...args : any [ ] ) => {
209
+ logMessage ( 'log' , args ) ;
204
210
} ;
205
211
} ) ;
206
212
}
You can’t perform that action at this time.
0 commit comments