Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Show RAM usage in the VS Code status bar

オープン
#1,027 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript, vscode

調査の方向性

src/remote/remote.ts から着手します。ここでは、エージェントメタデータのステータスバー項目が、最初のメタデータイベントをステータステキストとして使用しています。coder stat mem とデフォルトの Kubernetes テンプレートからのメタデータがどのように表現されているかを確認し、その後ツールチップの動作を追跡します。アクティブなワークスペースで使用メモリ、合計、パーセンテージを表示でき、高使用率を視覚的に示し、メタデータの詳細を保持し、欠落している、または解析できない RAM データを、有効な読み取り値があるかのように示さずに処理できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Feature vs-code

Feature request

Please add a way for the Coder Remote VS Code extension to show workspace RAM usage directly in the VS Code status bar, alongside or instead of the current first agent metadata value.

Today, Coder workspace templates commonly expose both CPU and RAM through agent metadata, for example:

metadata {
  display_name = "CPU Usage"
  key          = "0_cpu_usage"
  script       = "coder stat cpu"
  interval     = 10
  timeout      = 1
}

metadata {
  display_name = "RAM Usage"
  key          = "1_ram_usage"
  script       = "coder stat mem"
  interval     = 10
  timeout      = 1
}

The VS Code extension appears to render the first metadata value in the status bar and place the full metadata list in the tooltip. In practice this means CPU is often visible in the status bar, while RAM requires opening the Coder sidebar or hovering the status item.

Why RAM should be more visible

In Kubernetes-backed workspaces, CPU and RAM pressure have very different failure modes:

  • When CPU maxes out, Kubernetes throttles the container and work usually just takes longer.
  • When RAM maxes out, Kubernetes can OOM-kill the pod and restart the workspace.

That makes RAM usage much more important to watch continuously. A status-bar RAM indicator would give users time to stop processes, reduce workload, or resize the workspace before the pod is killed.

Suggested UX

Show RAM usage directly in the VS Code status bar when RAM metadata is available, for example:

RAM 54.1/64 GiB (85%)

or a compact variant:

54.1/64 GiB RAM (85%)

Possible behavior:

  • Prefer metadata whose display name/key clearly represents RAM or memory usage.
  • Keep CPU and other metadata available in the tooltip.
  • Show a warning state when memory usage is high, such as above 80% or 90%.
  • If RAM data is unavailable, do not show a misleading value; keep current behavior or explicitly indicate that memory usage is unavailable.

Acceptance criteria

  • The VS Code status bar can show RAM usage for the active Coder workspace.
  • The visible status text includes used memory, memory limit/total, and percentage when available.
  • High-memory states are visually noticeable.
  • Existing agent metadata tooltip behavior is preserved or improved.
  • Missing/unparseable RAM metadata is handled explicitly and does not look like a successful live reading.

Relevant code paths

  • src/remote/remote.ts currently creates the agent metadata status bar item and uses the first metadata event as the status text.
  • coder/coder already provides coder stat mem, and default Kubernetes template metadata includes RAM Usage, so this may be possible as a display-priority improvement without requiring new workspace telemetry.
主要言語
TypeScript
スター
131
フォーク
48
平均マージ
4日 21時間
マージ済み PR(30日)
14

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

coder/vscode-coder のほかの issue

coder/vscode-coder の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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