Skip to content
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

Fixes to comparing of Python environments #23417

Merged
merged 1 commit into from
May 13, 2024

Conversation

DonJayamanne
Copy link

No description provided.

@@ -276,14 +276,20 @@ export function areSameEnv(
if (leftInfo === undefined || rightInfo === undefined) {
return undefined;
}
const leftFilename = leftInfo.executable!.filename;
Copy link
Author

Choose a reason for hiding this comment

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

Use of the bang ! here is wrong, compiler says it can be undefined, but we're ignoring that.
And we run into issues as a result.

@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 labels May 13, 2024
@DonJayamanne DonJayamanne marked this pull request as ready for review May 13, 2024 12:50
@DonJayamanne DonJayamanne merged commit efef383 into native_locator May 13, 2024
68 of 70 checks passed
@DonJayamanne DonJayamanne deleted the fixComparingPythonEnvs branch May 13, 2024 12:51
anthonykim1 pushed a commit to anthonykim1/vscode-python that referenced this pull request May 16, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant