-
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
Contribute to the language status #18040
Comments
I contributed to the discussion at microsoft/vscode#129037 (comment) where I mentioned what we need in order to adopt the API wholesale (we already use it on web and plan on using it for virtual and untrusted workspaces as-is). @karthiknadig plans to bring up our use-case at the next API sync. |
@brettcannon thanks. I missed your comment in that issue, sorry about that. I agree that it might be a shock to the user that in one milestone we move to the right and move it inside the language status. Due to that I propose the following:
Typescript only got the first complaint about this change 2 months after the release. So it was smooth sailing, let's try to do the same for Python :) |
I'm afraid the level of detail that users need to have about their environment for Python is bit more nuanced and extensive than TypeScript (e.g. if we stopped showing the Python version by default I would be very upset as a user, same goes for the type of environment as users very often have multiple Python versions installed and care whether it's a virtual environment or global install that got automatically selected for them), so I don't think we can equate their experience to what ours would be unfortunately. We can talk about moving to the right sooner rather than later, but it will require updating a ton of screenshots so it isn't a quick fix. I would rather not try to squeeze it into this iteration unless open capacity shows up unexpectedly. |
Moving to this is also already in the deferred items list in our iteration plan, so we do hope to tackle this in the upcoming iteration. |
Next iteration would of course work, I missed that this might require to update a lot of screenshots. |
|
I attempted to do a basic move @isidorn Right now it appears weird as it "Python" appears twice. I see that each status bar item has a priority number attached to it, can I set such a number which ensures it always appears next to the language status item? In that case we can simply remove |
There is no exact priority number because it's an open system for all extensions. Tho, we want to ensure that pinned language status items are always directly after the language name. So, how about using the new language status API and then we discuss if pinned by default should be a thing or not? |
Sure. In that case we have decided to follow the approach described by @isidorn in #18040 (comment), but have the 3rd step behind an experiment, as we suspect Users would likely want pinning by default. We can discuss after that. |
I see. For the priority you can try something like |
Nice, thanks! I'll try it out. |
We plan to remove bitness |
@isidorn I am working on adopting the language status API and here's how it looks: After pinning and hovering: When interpreter selected is invalid: After pinned:It looks good. However I discovered a bug where the language status item does not appear when a language mode is changed: microsoft/vscode#140589. We have a getting started experience where we ask the user to create an untitled file and then select an interpreter using the status bar (now language item), so we would need that bug to be addressed before we can adopt the language status API. |
|
@karrtikr thanks for looking into this and thanks for filling that issue with nice steps. We plan to look into it this milestone. I do agree that it looks good, much cleaner! |
Joh just pushed a fix for the issue you filled. It should be in Insiders on Monday so try it out and let us know if there is anything else we can do to help you adopt the language status. Thanks |
Sure, thanks a lot for the quick fix! |
Hi 👋
Currently the Python extension contributes individual items to the status bar. On my macOS I see the Python version being used on the left side (picture). There might be other items?
I suggest to use the language status bar, Typescript is already using this (picture attached).
This way all the Python status bar items will come under a common item making the whole status bar experience cleaner for our users.
The status bar items which are actually progress our current advise is to use the
withProgress
-API. With that you announce a long running thing to VS Code. Our current thinking is to add a new progress location which is the extension’s language status. With that we can render something on the composite item as well as on the item itself. This is being discussed here, please chime in.fyi @brettcannon @jrieken
The text was updated successfully, but these errors were encountered: