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

Fix #13218: Add "pythonArgs" debug property to launch.json schema #13219

Merged
merged 1 commit into from
Aug 3, 2020

Conversation

int19h
Copy link

@int19h int19h commented Jul 31, 2020

For #13218

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).
  • The wiki is updated with any design decisions/details.

@int19h int19h requested review from karthiknadig and luabud July 31, 2020 11:46
package.json Outdated
@@ -1439,6 +1439,14 @@
"description": "Path (fully qualified) to python executable. Defaults to the value in settings",
"default": "${command:python.interpreterPath}"
},
"pythonArgs": {
"type": "array",
"description": "Command-line arguments passed to the Python interpreter.",
Copy link
Author

Choose a reason for hiding this comment

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

@luabud Please check the wording. I wasn't sure what the most appropriate term to use here, because "pythonPath" description says "executable", but then we seem to be using "interpreter" elsewhere a lot - more consistently so in more recent additions to the extension.

Copy link
Member

Choose a reason for hiding this comment

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

Looks great to me, I've talked to @brettcannon about this and I think he's okay with us using interpreter in this case.

Copy link
Member

Choose a reason for hiding this comment

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

I think we need to add "Use args to pass arguments to your script or module". Because i read the above as this is the way to pass arguments.

Copy link
Author

Choose a reason for hiding this comment

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

Keep in mind that they'll see "args" in the list first, long before they get to this one. I don't think it's very likely that someone will get confused by the tooltip alone... and we always have docs for the detailed descriptions.

Copy link
Author

Choose a reason for hiding this comment

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

@luabud I can also edit the description for "pythonPath" to be consistent. :)

@codecov-commenter
Copy link

codecov-commenter commented Jul 31, 2020

Codecov Report

Merging #13219 into master will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13219      +/-   ##
==========================================
- Coverage   59.63%   59.61%   -0.03%     
==========================================
  Files         670      670              
  Lines       36823    36823              
  Branches     5188     5188              
==========================================
- Hits        21960    21951       -9     
- Misses      13770    13776       +6     
- Partials     1093     1096       +3     
Impacted Files Coverage Δ
src/client/common/utils/platform.ts 64.70% <0.00%> (-11.77%) ⬇️
src/client/datascience/crossProcessLock.ts 79.41% <0.00%> (-11.77%) ⬇️
src/client/linters/pydocstyle.ts 86.66% <0.00%> (-2.23%) ⬇️
src/client/datascience/debugLocationTracker.ts 76.56% <0.00%> (-1.57%) ⬇️
src/client/common/process/proc.ts 14.49% <0.00%> (-0.73%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 30b3035...6301514. Read the comment docs.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 3, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@int19h int19h merged commit e7d30e6 into microsoft:master Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants