@@ -201,35 +201,7 @@ export const TerminalSettings = ({
201201 < div className = "flex flex-col gap-3 pl-3 border-l-2 border-vscode-button-background" >
202202 < div >
203203 < VSCodeCheckbox
204- checked = { inheritEnv }
205- onChange = { ( e : any ) => {
206- setInheritEnv ( e . target . checked )
207- vscode . postMessage ( {
208- type : "updateVSCodeSetting" ,
209- setting : "terminal.integrated.inheritEnv" ,
210- value : e . target . checked ,
211- } )
212- } }
213- data-testid = "terminal-inherit-env-checkbox" >
214- < span className = "font-medium" > { t ( "settings:terminal.inheritEnv.label" ) } </ span >
215- </ VSCodeCheckbox >
216- < div className = "text-vscode-descriptionForeground text-sm mt-1" >
217- < Trans i18nKey = "settings:terminal.inheritEnv.description" >
218- < VSCodeLink
219- href = { buildDocLink (
220- "features/shell-integration#inherit-environment-variables" ,
221- "settings_terminal_inherit_env" ,
222- ) }
223- style = { { display : "inline" } } >
224- { " " }
225- </ VSCodeLink >
226- </ Trans >
227- </ div >
228- </ div >
229-
230- < div >
231- < VSCodeCheckbox
232- checked = { terminalShellIntegrationDisabled ?? false }
204+ checked = { terminalShellIntegrationDisabled ?? true }
233205 onChange = { ( e : any ) =>
234206 setCachedStateField ( "terminalShellIntegrationDisabled" , e . target . checked )
235207 } >
@@ -253,6 +225,34 @@ export const TerminalSettings = ({
253225
254226 { ! terminalShellIntegrationDisabled && (
255227 < >
228+ < div >
229+ < VSCodeCheckbox
230+ checked = { inheritEnv }
231+ onChange = { ( e : any ) => {
232+ setInheritEnv ( e . target . checked )
233+ vscode . postMessage ( {
234+ type : "updateVSCodeSetting" ,
235+ setting : "terminal.integrated.inheritEnv" ,
236+ value : e . target . checked ,
237+ } )
238+ } }
239+ data-testid = "terminal-inherit-env-checkbox" >
240+ < span className = "font-medium" > { t ( "settings:terminal.inheritEnv.label" ) } </ span >
241+ </ VSCodeCheckbox >
242+ < div className = "text-vscode-descriptionForeground text-sm mt-1" >
243+ < Trans i18nKey = "settings:terminal.inheritEnv.description" >
244+ < VSCodeLink
245+ href = { buildDocLink (
246+ "features/shell-integration#inherit-environment-variables" ,
247+ "settings_terminal_inherit_env" ,
248+ ) }
249+ style = { { display : "inline" } } >
250+ { " " }
251+ </ VSCodeLink >
252+ </ Trans >
253+ </ div >
254+ </ div >
255+
256256 < div >
257257 < label className = "block font-medium mb-1" >
258258 { t ( "settings:terminal.shellIntegrationTimeout.label" ) }
0 commit comments