Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Ability to track the user selected Environment #25090

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

Merged
merged 4 commits into from
May 20, 2025
Merged

Conversation

DonJayamanne
Copy link

@DonJayamanne DonJayamanne commented May 20, 2025

@DonJayamanne DonJayamanne added no-changelog No news entry required skip package*.json package.json and package-lock.json don't both need updating skip tests Updates to tests unnecessary skip-issue-check labels May 20, 2025
): Promise<
| {
environment: EnvironmentPath;
reason: 'globalUserSelected' | 'workspaceUserSelected' | 'defaultRecommended';
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Providing the reasons why an environment is recommended.

@@ -28,6 +33,9 @@ export class PythonPathUpdaterService implements IPythonPathUpdaterServiceManage
let failed = false;
try {
await pythonPathUpdater.updatePythonPath(pythonPath);
if (trigger === 'ui') {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is the right spot for tracking what env is selected by the user.

@@ -67,7 +66,6 @@ export class InstallPackagesTool implements LanguageModelTool<IInstallPackageArg
for (const packageName of options.input.packageList) {
await installer.installModule(packageName, resourcePath, token, undefined, { installAsProcess: true });
}
trackEnvUsedByTool(resourcePath, environment);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old code no longer required

@DonJayamanne DonJayamanne marked this pull request as ready for review May 20, 2025 00:38
@vs-code-engineering vs-code-engineering bot added this to the May 2025 milestone May 20, 2025
karthiknadig
karthiknadig previously approved these changes May 20, 2025
@DonJayamanne DonJayamanne merged commit d7a5ab7 into main May 20, 2025
85 checks passed
@DonJayamanne DonJayamanne deleted the don/delighted-gazelle branch May 20, 2025 01:10
anthonykim1 pushed a commit to anthonykim1/vscode-python that referenced this pull request Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required skip package*.json package.json and package-lock.json don't both need updating skip tests Updates to tests unnecessary skip-issue-check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.