Skip to content

Commit

Permalink
switch setting name to terminal.shellIntegration.enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykim1 committed Sep 23, 2024
1 parent 0dce2a5 commit f69728d
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/client/common/configSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ export class PythonSettings implements IPythonSettings {
launchArgs: [],
activateEnvironment: true,
activateEnvInCurrentTerminal: false,
enableShellIntegration: false,
};

this.REPL = pythonSettings.get<IREPLSettings>('REPL')!;
Expand Down
2 changes: 1 addition & 1 deletion src/client/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ export interface ITerminalSettings {
readonly launchArgs: string[];
readonly activateEnvironment: boolean;
readonly activateEnvInCurrentTerminal: boolean;
readonly enableShellIntegration: boolean;
}

export interface IREPLSettings {
readonly enableREPLSmartSend: boolean;
readonly sendToNativeREPL: boolean;
readonly enableShellIntegration: boolean;
}

export interface IExperiments {
Expand Down
2 changes: 1 addition & 1 deletion src/client/terminals/pythonStartup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { EXTENSION_ROOT_DIR } from '../constants';

export async function registerPythonStartup(context: ExtensionContext): Promise<void> {
const config = getConfiguration('python');
const pythonrcSetting = config.get<boolean>('REPL.enableShellIntegration');
const pythonrcSetting = config.get<boolean>('terminal.shellIntegration.enabled');

if (pythonrcSetting) {
const storageUri = context.storageUri || context.globalStorageUri;
Expand Down
1 change: 0 additions & 1 deletion src/test/terminals/codeExecution/helper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ suite('Terminal - Code Execution Helper', () => {
enableREPLSmartSend: false,
REPLSmartSend: false,
sendToNativeREPL: false,
enableShellIntegration: true,
}));
configurationService.setup((x) => x.getSettings(TypeMoq.It.isAny())).returns(() => pythonSettings.object);
configurationService
Expand Down
1 change: 0 additions & 1 deletion src/test/terminals/codeExecution/smartSend.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ suite('REPL - Smart Send', () => {
enableREPLSmartSend: true,
REPLSmartSend: true,
sendToNativeREPL: false,
enableShellIntegration: true,
}));

configurationService.setup((x) => x.getSettings(TypeMoq.It.isAny())).returns(() => pythonSettings.object);
Expand Down

0 comments on commit f69728d

Please sign in to comment.