|
|
@@ -351,9 +351,10 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
|
|
|
}
|
|
|
|
|
|
// Initialize out-of-scope variables that need to recieve persistent global state values
|
|
|
- this.getState().then(({ soundEnabled, terminalShellIntegrationTimeout }) => {
|
|
|
+ this.getState().then(({ soundEnabled, terminalShellIntegrationTimeout, terminalCommandDelay }) => {
|
|
|
setSoundEnabled(soundEnabled ?? false)
|
|
|
Terminal.setShellIntegrationTimeout(terminalShellIntegrationTimeout ?? TERMINAL_SHELL_INTEGRATION_TIMEOUT)
|
|
|
+ Terminal.setCommandDelay(terminalCommandDelay ?? 0)
|
|
|
})
|
|
|
|
|
|
// Initialize tts enabled state
|
|
|
@@ -1197,6 +1198,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
|
|
|
writeDelayMs,
|
|
|
terminalOutputLineLimit,
|
|
|
terminalShellIntegrationTimeout,
|
|
|
+ terminalCommandDelay,
|
|
|
fuzzyMatchThreshold,
|
|
|
mcpEnabled,
|
|
|
enableMcpServerCreation,
|
|
|
@@ -1264,6 +1266,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
|
|
|
writeDelayMs: writeDelayMs ?? 1000,
|
|
|
terminalOutputLineLimit: terminalOutputLineLimit ?? 500,
|
|
|
terminalShellIntegrationTimeout: terminalShellIntegrationTimeout ?? TERMINAL_SHELL_INTEGRATION_TIMEOUT,
|
|
|
+ terminalCommandDelay: terminalCommandDelay ?? 0,
|
|
|
fuzzyMatchThreshold: fuzzyMatchThreshold ?? 1.0,
|
|
|
mcpEnabled: mcpEnabled ?? true,
|
|
|
enableMcpServerCreation: enableMcpServerCreation ?? true,
|
|
|
@@ -1350,6 +1353,7 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
|
|
|
terminalOutputLineLimit: stateValues.terminalOutputLineLimit ?? 500,
|
|
|
terminalShellIntegrationTimeout:
|
|
|
stateValues.terminalShellIntegrationTimeout ?? TERMINAL_SHELL_INTEGRATION_TIMEOUT,
|
|
|
+ terminalCommandDelay: stateValues.terminalCommandDelay ?? 0,
|
|
|
mode: stateValues.mode ?? defaultModeSlug,
|
|
|
language: stateValues.language ?? formatLanguage(vscode.env.language),
|
|
|
mcpEnabled: stateValues.mcpEnabled ?? true,
|