-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Modified Select interpreter
command & add a reset interpreter command
#10373
Conversation
…at workspace level
Select interpreter
command to support setting interpreter at workspace levelSelect interpreter
command add a reset interpreter command
Select interpreter
command add a reset interpreter commandSelect interpreter
command & add a reset interpreter command
Codecov Report
@@ Coverage Diff @@
## pythonPath #10373 +/- ##
==============================================
+ Coverage 60.83% 60.83% +<.01%
==============================================
Files 570 570
Lines 30746 30764 +18
Branches 4375 4379 +4
==============================================
+ Hits 18704 18715 +11
- Misses 11089 11094 +5
- Partials 953 955 +2
Continue to review full report at Codecov.
|
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.
Mostly LGTM.
I do have a question about whether the workspace quickpick part should be part of this PR or not. It seems fine here, but if there is a separate issue for it then I'd expect a separate PR.
I also recommend renaming InterpreterSelector.getWorkspaceToSetPythonPath()
to getConfigTarget()
and make it handle the global case.
@@ -0,0 +1 @@ | |||
Modified `Select interpreter` command to support setting interpreter at workspace level. |
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.
Why is this part of this PR? Each PR should cover one change, so shouldn't it be in a separate PR? If it really is integral to the reset interpreter command then I don't see why it should have a separate issue number.
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.
Actually I had to refactor tests for Modified Select interpreter command to support setting interpreter at workspace level
while writing tests for Added a reset interpreter command in a similar way
.
I can move Added a reset interpreter command in a similar way
it into a separate PR but it would still be based on Modified Select interpreter command to support setting interpreter at workspace level
PR, so I figured maybe not. Should I do it?
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.
There are several advantages to keeping each PR discrete. Some of those advantages:
- easier to understand
- easier to identify what changed in the git history
- easier to revert
At the least I wanted to understand why one PR was addressing 2 distinct issues, before I approved the PR.
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.
I understand. I should've atleast left a comment explaining the reason I did that. Thanks for the feedback!
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.
LGTM (assuming we sort out the question of one PR for multiple issues)
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.
Co-Authored-By: Karthik Nadig <kanadig@microsoft.com>
Kudos, SonarCloud Quality Gate passed!
|
I recommend to hide whitespace changes before reviewing
Select interpreter
command to support setting interpreter at workspace levelFor #10372 #10374
package-lock.json
has been regenerated by runningnpm install
(if dependencies have changed).