The 'idle-session-detector' plugin is meant for use in determining when a remote VSCode server session has become idle.
- Monitors file editing activity via the VSCode
vscode.workspace.onDidChangeTextDocumentevent - Monitors terminal activity using
/dev/pty/NNtimestamps - Records seconds idle in
~/.vscode-idle, +/- 5s
This is mostly only usefuly for VSCode Server running in a container, and you'll need a external process/script to monitor and act on the idle time.
This extension contributes the following settings:
idleSessionDetector.idleNoticeSeconds: How often to sendNotice: You have been idle for ${minutesIdle} minutes
vsceis the node module needed to build locally;npm install -g vsce;vsce package./install-local.sh idle-session-detector-X.Y.Z.vsixto install
None.
Initial release
Made idleNoticeSeconds configurable and defaulted to 30m.