-
Notifications
You must be signed in to change notification settings - Fork 29
Add startup activation #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add startup activation #196
Conversation
f67a1fb to
13ce1e4
Compare
ddc661c to
f92d94b
Compare
949c5a4 to
2a1a618
Compare
2df81f9 to
960ac5a
Compare
daa14b2 to
e68c9e3
Compare
24f0fe0 to
24cc560
Compare
|
If the changes appear safe, you can manually trigger the pipeline by commenting |
| await withProgress( | ||
| { | ||
| location: ProgressLocation.Window, | ||
| title: `Activating environment: ${environment.environmentPath.fsPath}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this need to be l10?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
| } | ||
|
|
||
| // https://github.com/microsoft/vscode-python-environments/issues/172 | ||
| // const name = options.name ?? `Python: ${environment.displayName}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like this was left behind?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is what we need to uncomment after the issue above is fixed.
| }); | ||
| } | ||
|
|
||
| // https://github.com/microsoft/vscode-python-environments/issues/172 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be worth clarifying why this issue is there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do
| await waitForShellIntegration(terminal); | ||
| await this.activate(terminal, environment); | ||
| }, | ||
| if (actType === 'command') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be worth having constants for all the activation types instead of the strings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great suggestion, will add in a flow up PR.
| return selected; | ||
| } | ||
|
|
||
| async function installPython( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it possible to give a version to install? Or is this like quick install?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is like quick install
Fixes #201
Fixes #200
Fixes #227
Fixes #231