File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments