File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,11 @@ const csharpCellExecutor: VSCodeCellExecutor = {
148148const  bashCellExecutor : VSCodeCellExecutor  =  { 
149149  language : "bash" , 
150150  execute : async  ( blocks : string [ ] )  =>  { 
151-     const  terminal  =  window . activeTerminal  ||  window . createTerminal ( ) ; 
151+     // todo: this should probably check that the terminal isn't an interactive terminal for languages 
152+     // other than R as well... 
153+     const  terminal  =  window . activeTerminal  &&  window . activeTerminal ?. name  !==  'R Interactive'  ?
154+       window . activeTerminal  : window . createTerminal ( ) ; 
155+ 
152156    terminal . show ( ) ; 
153157    terminal . sendText ( blocks . join ( "\n" ) ) ; 
154158  } , 
@@ -278,7 +282,7 @@ export async function ensureRequiredExtension(
278282      } 
279283    } 
280284  }  else  { 
281-     return  false ; 
285+     return  true ; 
282286  } 
283287} 
284288
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments