Skip to content

Commit f7856ef

Browse files
Terminal settings: Cleanup terminal settings tab and change default terminal to inline (#8342)
Co-authored-by: Copilot <[email protected]>
1 parent 5fb36d9 commit f7856ef

File tree

20 files changed

+358
-358
lines changed

20 files changed

+358
-358
lines changed

src/core/tools/executeCommandTool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export async function executeCommandTool(
6767
const {
6868
terminalOutputLineLimit = 500,
6969
terminalOutputCharacterLimit = DEFAULT_TERMINAL_OUTPUT_CHARACTER_LIMIT,
70-
terminalShellIntegrationDisabled = false,
70+
terminalShellIntegrationDisabled = true,
7171
} = providerState ?? {}
7272

7373
// Get command execution timeout from VSCode configuration (in seconds)
@@ -149,7 +149,7 @@ export async function executeCommand(
149149
executionId,
150150
command,
151151
customCwd,
152-
terminalShellIntegrationDisabled = false,
152+
terminalShellIntegrationDisabled = true,
153153
terminalOutputLineLimit = 500,
154154
terminalOutputCharacterLimit = DEFAULT_TERMINAL_OUTPUT_CHARACTER_LIMIT,
155155
commandExecutionTimeout = 0,

webview-ui/src/components/settings/TerminalSettings.tsx

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -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")}

webview-ui/src/i18n/locales/ca/settings.json

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/de/settings.json

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)