coder / coder/vscode-coder

Intelligently detect activity in the IDE

オープン
#365 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
vs-code waiting-for-info
主要言語
TypeScript
スター
130
フォーク
48
平均マージ
3日 3時間
マージ済み PR(30日)
15

説明

We count any connected VSCode session as workspace activity. This is limiting because when a minimized tab of VSCode is connected or when a laptop is left on overnight, the activity bump keeps workspaces alive. This also deteriorates the accuracy of template insights.

One option is autostop requirement, but customers have noted that this not sufficient in all cases. For example, some templates occasionally need workspaces to stay alive overnight for long-running jobs. Autostop requirement is too aggressive of a system in these scenarios.

We should investigate a way to detect user activity more intelligently in VSCode and close connections when the user is not "active" in the IDE. This would make the activity-based autostop system more accurate and reliable.

I found an [`active` property](https://code.visualstudio.com/api/references/vscode-api#WindowState) on the window object in the API. Not sure if it can be used for this purpose, just a starting point.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。