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 5 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