File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/vs/platform/terminal/node Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,9 @@ export function getShellIntegrationInjection(
118
118
const shell = process . platform === 'win32' ? path . basename ( shellLaunchConfig . executable ) . toLowerCase ( ) : path . basename ( shellLaunchConfig . executable ) ;
119
119
const appRoot = path . dirname ( FileAccess . asFileUri ( '' , require ) . fsPath ) ;
120
120
let newArgs : string [ ] | undefined ;
121
+ const envMixin : IProcessEnvironment = {
122
+ 'VSCODE_INJECTION' : '1'
123
+ } ;
121
124
122
125
// Windows
123
126
if ( isWindows ) {
@@ -134,16 +137,13 @@ export function getShellIntegrationInjection(
134
137
newArgs = [ ...newArgs ] ; // Shallow clone the array to avoid setting the default array
135
138
newArgs [ newArgs . length - 1 ] = format ( newArgs [ newArgs . length - 1 ] , appRoot , '' ) ;
136
139
}
137
- return { newArgs } ;
140
+ return { newArgs, envMixin } ;
138
141
}
139
142
logService . warn ( `Shell integration cannot be enabled for executable "${ shellLaunchConfig . executable } " and args` , shellLaunchConfig . args ) ;
140
143
return undefined ;
141
144
}
142
145
143
146
// Linux & macOS
144
- const envMixin : IProcessEnvironment = {
145
- 'VSCODE_INJECTION' : '1'
146
- } ;
147
147
switch ( shell ) {
148
148
case 'bash' : {
149
149
if ( ! originalArgs || originalArgs . length === 0 ) {
You can’t perform that action at this time.
0 commit comments