Skip to content

Commit b387ade

Browse files
committed
fix: add a info message indicating code is reverted
1 parent 3184631 commit b387ade

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/common/localize.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,15 @@ export namespace ShellStartupActivationStrings {
172172
export const updateScript = l10n.t('Update Shell Profile');
173173
export const envCollectionDescription = l10n.t('Environment variables for shell activation');
174174
export const shellStartupScriptEditComplete = l10n.t(
175-
'Shell startup profile updated. See [logs](command:{0})',
175+
'Shell startup profile updated with code for Python environment activation. See [logs](command:{0})',
176176
Commands.viewLogs,
177177
);
178178
export const shellStartupScriptEditFailed = l10n.t(
179179
'Failed to update shell startup profile. See [logs](command:{0})',
180180
Commands.viewLogs,
181181
);
182+
export const revertedShellStartupScripts = l10n.t(
183+
'Removed shell startup profile code for Python environment activation. See [logs](command:{0})',
184+
Commands.viewLogs,
185+
);
182186
}

src/features/terminal/activateUsingShellStartup.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ export class ShellStartupActivationManagerImpl implements ShellStartupActivation
167167
traceInfo(
168168
'Setting `python-envs.terminal.autoActivationType` to `command`, after removing shell startup scripts.',
169169
);
170+
showInformationMessage(ShellStartupActivationStrings.revertedShellStartupScripts);
170171
}
171172

172173
dispose() {

0 commit comments

Comments
 (0)