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.onDidChangeTextDocument
event - Monitors terminal activity using
/dev/pty/NN
timestamps - 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
vsce
is the node module needed to build locally;npm install -g vsce
;vsce package
./install-local.sh idle-session-detector-X.Y.Z.vsix
to install
None.
Initial release
Made idleNoticeSeconds
configurable and defaulted to 30m.