File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -417,6 +417,9 @@ export class WakaTime {
417
417
vscode . window . onDidChangeActiveTextEditor ( this . onChangeTab , this , subscriptions ) ;
418
418
vscode . workspace . onDidSaveTextDocument ( this . onSave , this , subscriptions ) ;
419
419
420
+ vscode . workspace . onDidChangeNotebookDocument ( this . onChangeNotebook , this , subscriptions ) ;
421
+ vscode . workspace . onDidSaveNotebookDocument ( this . onSaveNotebook , this , subscriptions ) ;
422
+
420
423
vscode . tasks . onDidStartTask ( this . onDidStartTask , this , subscriptions ) ;
421
424
vscode . tasks . onDidEndTask ( this . onDidEndTask , this , subscriptions ) ;
422
425
@@ -468,6 +471,14 @@ export class WakaTime {
468
471
this . onEvent ( true ) ;
469
472
}
470
473
474
+ private onChangeNotebook ( _e : vscode . NotebookDocumentChangeEvent ) : void {
475
+ this . onEvent ( false ) ;
476
+ }
477
+
478
+ private onSaveNotebook ( _e : vscode . NotebookDocument | undefined ) : void {
479
+ this . onEvent ( true ) ;
480
+ }
481
+
471
482
private onEvent ( isWrite : boolean ) : void {
472
483
clearTimeout ( this . debounceTimeoutId ) ;
473
484
this . debounceTimeoutId = setTimeout ( ( ) => {
You can’t perform that action at this time.
0 commit comments