Skip to content

FEATURE: Display 'active session' in the status bar #476

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

malfusion
Copy link

FEATURE: Display 'active session' in the status bar

The logged in users's username is currently shown in the status bar. However, I needed the ability to check which session I was currently in before submitting my solutions. It was inconvenient to keep using the "Manage sessions" option to check the currently active session. So I built one for my own use case.
I would like to open a pull request for this feature. If you find this feature useful, let me know your changes/suggestions, and do consider merging this feature to the extension.

What it does:

  • The proposed implementation builds on top of 'listSessions' functionality, to obtain the currently active session.
  • The extension retrieves the current session every 10 seconds and updates the status bar with the session name as well

Possible changes:

  • Polling interval can be made to be user-defined in settings

Result - Status bar
image

@jdneo
Copy link
Member

jdneo commented Dec 3, 2019

Hi @malfusion,

Thank you for your contribution. Apologize for my late reply.

One thing I'm not quite understand is that why we need to poll the active session? In case the active session is changed by other tools?

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.

2 participants