File tree Expand file tree Collapse file tree
features/terminal/shells/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ export function activeTerminal(): Terminal | undefined {
6161 return window . activeTerminal ;
6262}
6363
64+ export function activeTerminalShellIntegration ( ) {
65+ return window . activeTerminal ?. shellIntegration ;
66+ }
67+
6468export function activeTextEditor ( ) : TextEditor | undefined {
6569 return window . activeTextEditor ;
6670}
Original file line number Diff line number Diff line change 1- import { window } from 'vscode' ;
21import { PythonCommandRunConfiguration , PythonEnvironment } from '../../../../api' ;
32import { traceInfo } from '../../../../common/logging' ;
43import { isWindows } from '../../../../common/utils/platformUtils' ;
4+ import { activeTerminalShellIntegration } from '../../../../common/window.apis' ;
55import { ShellConstants } from '../../../common/shellConstants' ;
66import { quoteArgs } from '../../../execution/execUtils' ;
77
@@ -99,7 +99,7 @@ export function extractProfilePath(content: string): string | undefined {
9999}
100100
101101export function shellIntegrationForActiveTerminal ( name : string , profile : string ) : boolean {
102- const hasShellIntegration = window . activeTerminal ?. shellIntegration ;
102+ const hasShellIntegration = activeTerminalShellIntegration ( ) ;
103103
104104 if ( hasShellIntegration ) {
105105 traceInfo (
You can’t perform that action at this time.
0 commit comments