File tree Expand file tree Collapse file tree
src/client/interpreter/activation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,8 +125,13 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
125125 }
126126 }
127127
128- public async _applyCollection ( resource : Resource , shell = this . applicationEnvironment . shell ) : Promise < void > {
128+ public async _applyCollection ( resource : Resource , shell ?: string ) : Promise < void > {
129129 this . showProgress ( ) ;
130+ await this . _applyCollectionImpl ( resource , shell ) ;
131+ this . hideProgress ( ) ;
132+ }
133+
134+ private async _applyCollectionImpl ( resource : Resource , shell = this . applicationEnvironment . shell ) : Promise < void > {
130135 const workspaceFolder = this . getWorkspaceFolder ( resource ) ;
131136 const settings = this . configurationService . getSettings ( resource ) ;
132137 const envVarCollection = this . getEnvironmentVariableCollection ( { workspaceFolder } ) ;
@@ -221,7 +226,6 @@ export class TerminalEnvVarCollectionService implements IExtensionActivationServ
221226 const displayPath = this . pathUtils . getDisplayName ( settings . pythonPath , workspaceFolder ?. uri . fsPath ) ;
222227 const description = new MarkdownString ( `${ Interpreters . activateTerminalDescription } \`${ displayPath } \`` ) ;
223228 envVarCollection . description = description ;
224- this . hideProgress ( ) ;
225229
226230 await this . trackTerminalPrompt ( shell , resource , env ) ;
227231 }
You can’t perform that action at this time.
0 commit comments