File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/vs/workbench/contrib/notebook/browser/contrib/debug Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
+ import { Delayer } from 'vs/base/common/async' ;
6
7
import { Disposable } from 'vs/base/common/lifecycle' ;
7
8
import { IRange , Range } from 'vs/editor/common/core/range' ;
8
9
import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
@@ -34,11 +35,12 @@ export class PausedCellDecorationContribution extends Disposable implements INot
34
35
) {
35
36
super ( ) ;
36
37
38
+ const delayer = this . _register ( new Delayer ( 200 ) ) ;
37
39
this . _register ( _debugService . getModel ( ) . onDidChangeCallStack ( ( ) => this . updateExecutionDecorations ( ) ) ) ;
38
40
this . _register ( _debugService . getViewModel ( ) . onDidFocusStackFrame ( ( ) => this . updateExecutionDecorations ( ) ) ) ;
39
41
this . _register ( _notebookExecutionStateService . onDidChangeExecution ( e => {
40
42
if ( e . type === NotebookExecutionType . cell && this . _notebookEditor . textModel && e . affectsNotebook ( this . _notebookEditor . textModel . uri ) ) {
41
- this . updateExecutionDecorations ( ) ;
43
+ delayer . trigger ( ( ) => this . updateExecutionDecorations ( ) ) ;
42
44
}
43
45
} ) ) ;
44
46
}
You can’t perform that action at this time.
0 commit comments