-
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
Ensure interpreter information in the status bar appears for "Python related" files #18930
Comments
Could It also be considered to add a field in the settings to specify manually files or type of files (*.txt for example) for which the status bar would remain active? |
Can you elaborate on these "files of a custom type"? If it's standard we can possibly include them in the regex. |
It's not standard. We developed a DSL that is translated to python code and executed by our compiler. All those files have the same extension (*.cf). So the virtual env in which we are is important for our compiler but we do not follow the python syntax and keywords. When the statusbar was always visible we were happy but we do understand that showing it all the time is overkill and can annoy people. What I propose is adding a setting to the the python extension in which people can add additional files/file extensions/regexes for which the statusbar would stay active or even a setting that is by default toggled off but can be toggled on to always show the status bar. I'm ready to open a PR myself for this if it has a chance to be merged :) Thanks (Should I create a new issue for this or am I at the right place?) |
Another option that would suit us:
Would that be possible? |
Or, alternatively, allow other extensions to register additional languages that get the selector box by registering their languageId's into get hidden() {
const document = this.docManager.activeTextEditor?.document;
if (document?.fileName.endsWith('settings.json')) {
return false;
}
return ! showPythonSelectorType.includes(document?.languageId);
} (I'm not a typescript user, so I could be way of here) |
This is as good as any other place. 🙂 Another option we have is bringing back the "always show" mechanic when we move to the language status menu. Since it would be hidden behind the |
After talking it over with the wider VS Code team, we decided we can provide a setting to expose the interpreter information at all times when the Python extension is loaded. I will create a separate issue for this. |
#19089 for the setting idea. |
FYI we now have a setting |
Since we've a setting to always show interpreter and we haven't received any other reports asking to show this, closing this issue. |
Currently it's only displayed if a Python file or a
settings.json
file is opened. Some of other things we should probably display it for:vscode-python/package.json
Lines 91 to 97 in e157943
Also note there can various types of requirements files:
vscode-python/package.json
Lines 1470 to 1477 in e157943
If a Python-related output panel is opened, see Using the
setActiveEnvironment()
API causes the environment details to disappear #18914 (comment)environment.yml
cc/ @luabud @brettcannon feel free to edit the list
The text was updated successfully, but these errors were encountered: