-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Activate extension if workspace has mspythonconfig #10906
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
Conversation
Kudos, SonarCloud Quality Gate passed!
|
Codecov Report
@@ Coverage Diff @@
## master #10906 +/- ##
==========================================
- Coverage 60.67% 60.65% -0.02%
==========================================
Files 580 580
Lines 31530 31530
Branches 4480 4480
==========================================
- Hits 19131 19125 -6
- Misses 11429 11433 +4
- Partials 970 972 +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.
LGTM
@@ -85,7 +85,8 @@ | |||
"onCommand:python.datascience.selectJupyterInterpreter", | |||
"onCommand:python.datascience.selectjupytercommandline", | |||
"onCommand:python.enableSourceMapSupport", | |||
"onCustomEditor:NativeEditorProvider.ipynb" | |||
"onCustomEditor:NativeEditorProvider.ipynb", | |||
"workspaceContains:**/mspythonconfig.json" |
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.
If JSON supported comments I'd ask you to leave one here about the purpose of this activation trigger... 😄 In lieu of that, would you mind making at note somewhere else (e.g. in CONTRIBUTING.md, src/client/extension.ts, or perhaps some new file like PACKAGE_JSON_COMMENTS.md)?
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.
Not a fan of the prefix ms
. Why not pythonconfig.json
?
The launch.json
and similar files are specific to VSC (Microsoft product), yet we dont prefix with ms
..
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.
However, i understand this is some existing file from another product/package.
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.
@MikhailArkhipov was there a good reason for the ms prefix? Can we remove 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.
pythonconfig.json
is confusing, it makes me believe this is to configure Python while using the extension. mspythonconfig.json
sounds more likely to do with the extension, still not clear enough.
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.
The extension is named ms-python.python-nnnn
So the ms prefix is consistent.
Also, pythonconfig.json is too generic and might conflict with some other extension. Does that make sense?
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.
Still not sold. Feels more like branding when sticking ms
.
If we want a config for the extension in VS Code then how about, codepythonconfig.json
, or vss/vscode/pvsc
, or similar.
And we might want to put it into ./.vscode
folder along with settings.json
and launch.json
. This way there's no ambiguity about who owns this file.
If it goes into ./.vscode
folder I don't see any reason for not naming it pythonconfig.json
. At that point it is obvious that it is specific to vscode, automatically our extension.
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 file is read directly by the LS, so I don't think it should be in any editor-specific folder.
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.
Isn't this a dup of #10856
This PR is for a specific file (presumably needed by the language server) that is not part of that other PR. |
@judej Let me know if I can go ahead with this name for now or should I wait for an updated name. |
No description provided.