Skip to content

Commit f0c3b39

Browse files
committed
chore: rename 'startup' to 'shellStartup'
1 parent 3a3449f commit f0c3b39

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@
9393
"default": "command",
9494
"enum": [
9595
"command",
96-
"startup",
96+
"shellStartup",
9797
"off"
9898
],
9999
"enumDescriptions": [
100100
"%python-envs.terminal.autoActivationType.command%",
101-
"%python-envs.terminal.autoActivationType.startup%",
101+
"%python-envs.terminal.autoActivationType.shellStartup%",
102102
"%python-envs.terminal.autoActivationType.off%"
103103
],
104104
"scope": "machine"

package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"python-envs.terminal.showActivateButton.description": "Whether to show the 'Activate' button in the terminal menu",
99
"python-envs.terminal.autoActivationType.description": "The type of activation to use when activating an environment in the terminal",
1010
"python-envs.terminal.autoActivationType.command": "Activation by executing a command in the terminal.",
11-
"python-envs.terminal.autoActivationType.startup": "Activation by modifying the terminal shell startup script.",
11+
"python-envs.terminal.autoActivationType.shellStartup": "Activation by modifying the terminal shell startup script.",
1212
"python-envs.terminal.autoActivationType.off": "No automatic activation of environments.",
1313
"python-envs.setEnvManager.title": "Set Environment Manager",
1414
"python-envs.setPkgManager.title": "Set Package Manager",

src/features/terminal/terminalManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class TerminalManagerImpl implements TerminalManager {
116116
}
117117
} else if (actType === 'off') {
118118
traceInfo(`"python-envs.terminal.autoActivationType" is set to "${actType}", skipping auto activation`);
119-
} else if (actType === 'startup') {
119+
} else if (actType === 'shellStartup') {
120120
traceInfo(
121121
`"python-envs.terminal.autoActivationType" is set to "${actType}", terminal should be activated by shell startup script`,
122122
);

src/features/terminal/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ export async function getEnvironmentForTerminal(
9090
return env;
9191
}
9292

93-
export function getAutoActivationType(): 'off' | 'command' | 'startup' {
93+
export function getAutoActivationType(): 'off' | 'command' | 'shellStartup' {
9494
// 'startup' auto-activation means terminal is activated via shell startup scripts.
9595
// 'command' auto-activation means terminal is activated via a command.
9696
// 'off' means no auto-activation.
9797
const config = getConfiguration('python-envs');
98-
return config.get<'off' | 'command' | 'startup'>('terminal.autoActivationType', 'command');
98+
return config.get<'off' | 'command' | 'shellStartup'>('terminal.autoActivationType', 'command');
9999
}

0 commit comments

Comments
 (0)