Split commands.ts by topic
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript, vscode
調査の方向性
Start with src/commands.ts and the existing topic-split tests, including commands.netcheck.test.ts and commands.openWorkspace.test.ts; compare their organization with the command handlers. Review src/command/ before moving or renaming it, and identify the shared plumbing named in the proposal. Done means topic modules match the test split, registration delegates to them, and behavior and telemetry span threading remain unchanged.
索引モデルが issue の本文から書いたものです。
説明
src/commands.ts is 1,820 lines. One Commands class holds every command palette command, plus the helpers behind them. Its tests are already split by topic (commands.netcheck.test.ts, commands.openWorkspace.test.ts, …), but the source isn't.
Topics currently mixed into the class
- Auth and deployments:
login,logout,switchDeployment,manageCredentials,askSignOutCli, welcome/logout messages - Diagnostics:
speedTest,netcheck,pingWorkspace,supportBundle(+ path prompt and consent),exportTelemetry,viewLogs - SSH config:
openSshConfig,pickSshConfigPath,connectedSshConfigPath,applyRecommendedSettings - Opening workspaces:
open,openFromSidebar,openWorkspaceFromSidebar,openDevContainer,pickWorkspace,openWorkspace,toWorkspaceAuthority,recentlyOpened,reusableAuthority, multi-window notification - Workspace actions:
createWorkspace,updateWorkspace,navigateToWorkspace,navigateToWorkspaceSettings,openWorkspaceInDashboard,openAppStatus
Proposal
- Move each topic into a
src/commands/module that matches the existing test split. The shared plumbing (resolveClientAndWorkspace,resolveCliEnv,requireExtensionBaseUrl) goes in one place they all import. - Keep command registration thin, so each handler delegates to its topic module.
- Rename or merge
src/command/first, becausecommand/(process exec) next tocommands/(VS Code commands) is confusing.diagnosticFlow.tsfitscli/, andexec.tsis generic process execution.
Non-goals: no behavior changes and no new abstractions. Move methods by topic and keep telemetry span threading as is. Related: #769 (command test coverage), #1066 (same split for remote.ts).
Filed by Claude Code for @EhabY.
- 主要言語
- TypeScript
- スター
- 132
- フォーク
- 48
- 平均マージ
- 2日 15分
- マージ済み PR(30日)
- 17
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
coder/vscode-coder のほかの issue
-
bug tech-debt
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
coder/vscode-coder#1140 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Migrate CI setup to pnpm/setup対応中かも @EhabY が 18 日前に担当しました。 オープンtech-debt
coder/vscode-coder#1119 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Design the VS Code Workspaces panel対応中かも @chrifro が 22 日前に担当しました。 オープン
coder/vscode-coder#1113 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Flush the connection log buffer after N failed reconnect attempts against an unreachable server対応中かも @aqandrew が 7 日前に担当しました。 オープンenhancement tech-debt
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
coder/vscode-coder#1112 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
bug upstream
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
coder/vscode-coder#1087 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
coder/vscode-coder の issue をすべて見る
似ている issue
-
refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
tomnewport/memprot-topo#55 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
WalletConnect/walletconnect-monorepo#7368 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
BU-Spark/se-chem-apll#47 ·
-
embed: handleTurboSignMessage header comment says the signing page posts to '*' (it never does)オープンdocumentation
難易度 2/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 70/100
udistrital/paginaweb_root#23 ·