@@ -21,7 +21,7 @@ import { CellInput } from '../interactive-common/cellInput';
2121import { CellOutput } from '../interactive-common/cellOutput' ;
2222import { ExecutionCount } from '../interactive-common/executionCount' ;
2323import { InformationMessages } from '../interactive-common/informationMessages' ;
24- import { CursorPos , ICellViewModel , IFont } from '../interactive-common/mainState' ;
24+ import { activeDebugState , CursorPos , DebugState , ICellViewModel , IFont } from '../interactive-common/mainState' ;
2525import { getOSType } from '../react-common/constants' ;
2626import { IKeyboardEvent } from '../react-common/event' ;
2727import { Image , ImageName } from '../react-common/image' ;
@@ -61,7 +61,7 @@ interface INativeCellBaseProps {
6161 focusPending : number ;
6262 busy : boolean ;
6363 useCustomEditorApi : boolean ;
64- runningByLine : boolean ;
64+ runningByLine : DebugState ;
6565 supportsRunByLine : boolean ;
6666}
6767
@@ -611,7 +611,7 @@ export class NativeCell extends React.Component<INativeCellProps> {
611611 } ;
612612 const toolbarClassName = this . props . cellVM . cell . data . cell_type === 'code' ? '' : 'markdown-toolbar' ;
613613
614- if ( this . props . runningByLine && ! this . isMarkdownCell ( ) ) {
614+ if ( activeDebugState ( this . props . runningByLine ) && ! this . isMarkdownCell ( ) ) {
615615 return (
616616 < div className = { toolbarClassName } >
617617 < div className = "native-editor-celltoolbar-middle" >
@@ -620,7 +620,7 @@ export class NativeCell extends React.Component<INativeCellProps> {
620620 onClick = { cont }
621621 tooltip = { getLocString ( 'DataScience.continueRunByLine' , 'Stop' ) }
622622 hidden = { this . isMarkdownCell ( ) }
623- disabled = { this . props . busy }
623+ disabled = { this . props . busy || this . props . runningByLine === DebugState . Run }
624624 >
625625 < div className = "codicon codicon-button" > { CodIcon . Stop } </ div >
626626 </ ImageButton >
@@ -629,7 +629,7 @@ export class NativeCell extends React.Component<INativeCellProps> {
629629 onClick = { step }
630630 tooltip = { getLocString ( 'DataScience.step' , 'Run next line' ) }
631631 hidden = { this . isMarkdownCell ( ) }
632- disabled = { this . props . busy }
632+ disabled = { this . props . busy || this . props . runningByLine === DebugState . Run }
633633 >
634634 < Image
635635 baseTheme = { this . props . baseTheme }
0 commit comments