Split remote.ts by topic, starting with migrations
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- typescript
- Lĩnh vực
- devtools
Hướng nghiên cứu
Bắt đầu trong src/remote/remote.ts bằng cách đọc migrateLegacyAuthority, migrateToSecretsStorage, migrateSessionTokenFile và migrateSessionAuthFromFiles, cùng với các hàm gọi chúng trong setup và setupCoderRemote. Tách các phương thức đơn giản này vào src/remote/migrations.ts, đồng thời giữ nguyên hành vi, thời điểm xóa và việc truyền các span telemetry; luồng migration phải tiếp tục hoạt động không thay đổi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
`src/remote/remote.ts` is 1,207 lines and mixes every concern of remote setup in one class. Recent work (per-editor SSH configs, legacy authority migration) keeps growing it.
Topics currently mixed into the class
- Setup orchestration: `setup`, `setupCoderRemote`
- Migrations: `migrateLegacyAuthority` (authority), `migrateToSecretsStorage`, `migrateSessionTokenFile`, `migrateSessionAuthFromFiles` (credentials)
- SSH config assembly: `updateSSHConfig`, `writeRemoteSshConfig`, `buildProxyCommand`, `getSshConfigPath`, `getLogArgs`, `getLogDir`
- Workspace lifecycle: `lookupWorkspace`, `waitForWorkspaceReady`, `resolveAgent`
- Auth/session: `ensureLoggedInAndRetry`, `showSessionExpiredDialog`, `watchRemoteSessionAuth`
- Binary management: `resolveRemoteBinary`, `checkCompatibility`
- Window/UI glue: `createAgentMetadataStatusBar`, `watchSettings`, `registerLabelFormatter`, `closeRemote`, `reloadWindow`
Proposal
- Extract migrations first, e.g. into `src/remote/migrations.ts`. They are self-contained, interact little with the rest of setup, and each has a deletion horizon; keeping them together makes them easy to find and eventually remove.
- If that lands well, extract SSH config assembly next. It is the most test-heavy area and only needs the path resolver, settings, and logger.
- Keep orchestration (`setup`/`setupCoderRemote`) in `remote.ts`.
Non-goals: no behavior changes and no new abstractions; move plain methods by topic and keep the telemetry span threading as is.
Filed by Claude Code for @EhabY.
- Ngôn ngữ chính
- TypeScript
- Star
- 131
- Fork
- 48
- Merge trung bình
- 2 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 16
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
-
Split commands.ts by topicĐang mởImprovement tech-debt vs-code
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
coder/vscode-coder#1135 · 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 17 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 21 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 serverĐ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 Dưới một giờ Mức phù hợp với người mới 85/100
capricorn86/happy-dom#2474 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
JSerwatka/letterboxd-tweaks#81 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
siyuan-note/siyuan#20165 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
polkadot-js/phishing#5716 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
juice-shop/juice-shop#3662 ·
Maintainer thường phản hồi trong vòng 1 ngày