Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/core/tools/executeCommandTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function executeCommandTool(
const {
terminalOutputLineLimit = 500,
terminalOutputCharacterLimit = DEFAULT_TERMINAL_OUTPUT_CHARACTER_LIMIT,
terminalShellIntegrationDisabled = false,
terminalShellIntegrationDisabled = true,
} = providerState ?? {}

// Get command execution timeout from VSCode configuration (in seconds)
Expand Down Expand Up @@ -149,7 +149,7 @@ export async function executeCommand(
executionId,
command,
customCwd,
terminalShellIntegrationDisabled = false,
terminalShellIntegrationDisabled = true,
terminalOutputLineLimit = 500,
terminalOutputCharacterLimit = DEFAULT_TERMINAL_OUTPUT_CHARACTER_LIMIT,
commandExecutionTimeout = 0,
Expand Down
58 changes: 29 additions & 29 deletions webview-ui/src/components/settings/TerminalSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,35 +201,7 @@ export const TerminalSettings = ({
<div className="flex flex-col gap-3 pl-3 border-l-2 border-vscode-button-background">
<div>
<VSCodeCheckbox
checked={inheritEnv}
onChange={(e: any) => {
setInheritEnv(e.target.checked)
vscode.postMessage({
type: "updateVSCodeSetting",
setting: "terminal.integrated.inheritEnv",
value: e.target.checked,
})
}}
data-testid="terminal-inherit-env-checkbox">
<span className="font-medium">{t("settings:terminal.inheritEnv.label")}</span>
</VSCodeCheckbox>
<div className="text-vscode-descriptionForeground text-sm mt-1">
<Trans i18nKey="settings:terminal.inheritEnv.description">
<VSCodeLink
href={buildDocLink(
"features/shell-integration#inherit-environment-variables",
"settings_terminal_inherit_env",
)}
style={{ display: "inline" }}>
{" "}
</VSCodeLink>
</Trans>
</div>
</div>

<div>
<VSCodeCheckbox
checked={terminalShellIntegrationDisabled ?? false}
checked={terminalShellIntegrationDisabled ?? true}
onChange={(e: any) =>
setCachedStateField("terminalShellIntegrationDisabled", e.target.checked)
}>
Expand All @@ -253,6 +225,34 @@ export const TerminalSettings = ({

{!terminalShellIntegrationDisabled && (
<>
<div>
<VSCodeCheckbox
checked={inheritEnv}
onChange={(e: any) => {
setInheritEnv(e.target.checked)
vscode.postMessage({
type: "updateVSCodeSetting",
setting: "terminal.integrated.inheritEnv",
value: e.target.checked,
})
}}
data-testid="terminal-inherit-env-checkbox">
<span className="font-medium">{t("settings:terminal.inheritEnv.label")}</span>
</VSCodeCheckbox>
<div className="text-vscode-descriptionForeground text-sm mt-1">
<Trans i18nKey="settings:terminal.inheritEnv.description">
<VSCodeLink
href={buildDocLink(
"features/shell-integration#inherit-environment-variables",
"settings_terminal_inherit_env",
)}
style={{ display: "inline" }}>
{" "}
</VSCodeLink>
</Trans>
</div>
</div>

<div>
<label className="block font-medium mb-1">
{t("settings:terminal.shellIntegrationTimeout.label")}
Expand Down
46 changes: 23 additions & 23 deletions webview-ui/src/i18n/locales/ca/settings.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 19 additions & 19 deletions webview-ui/src/i18n/locales/de/settings.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading