vscode-leetcode icon indicating copy to clipboard operation
vscode-leetcode copied to clipboard

FEATURE: Display 'active session' in the status bar

Open malfusion opened this issue 6 years ago • 1 comments

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

malfusion avatar Nov 15 '19 18:11 malfusion

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?

jdneo avatar Dec 03 '19 13:12 jdneo