Split commands.ts by topic
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript, vscode
- Lĩnh vực
- developer-experience
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 132
- Fork
- 48
- Merge trung bình
- 2 ngày 15 phút
- Pull request đã merge (30 ngày)
- 17
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của coder/vscode-coder
-
bug tech-debt
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
coder/vscode-coder#1140 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Migrate CI setup to pnpm/setupCó thể đã có người làm @EhabY đã nhận 18 ngày trước. Đang mởtech-debt
coder/vscode-coder#1119 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Design the VS Code Workspaces panelCó thể đã có người làm @chrifro đã nhận 22 ngày trước. Đang mở
coder/vscode-coder#1113 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Flush the connection log buffer after N failed reconnect attempts against an unreachable serverCó thể đã có người làm @aqandrew đã nhận 7 ngày trước. Đang mởenhancement tech-debt
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
coder/vscode-coder#1112 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug upstream
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
coder/vscode-coder#1087 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của coder/vscode-coder
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
rajbos/ai-engineering-fluency#2340 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
community documentation first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
lingdojo/kana-dojo#31864 · 1 bình luận · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
zenstackhq/zenstack#2873 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CLI: TUI shows onboarding when the provider's API key is only in the environment (e.g. OPENROUTER_API_KEY)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởCLI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
cline/cline#14923 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
paperclipai/paperclip#15490 ·
Maintainer thường phản hồi trong vòng 1 ngày