Split commands.ts by topic
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Refactoring
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript, vscode
- Bereich
- developer-experience
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 132
- Forks
- 48
- Ø Merge
- 2 T. 5 Std.
- Gemergte PRs (30 T.)
- 19
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus coder/vscode-coder
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
coder/vscode-coder#1141 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug tech-debt
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
coder/vscode-coder#1140 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Migrate CI setup to pnpm/setupEvtl. vergeben @EhabY hat das vor 19 Tagen übernommen. Offentech-debt
coder/vscode-coder#1119 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Design the VS Code Workspaces panelEvtl. vergeben @chrifro hat das vor 22 Tagen übernommen. Offen
coder/vscode-coder#1113 · 3 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug upstream
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
coder/vscode-coder#1087 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in coder/vscode-coder
Ähnliche Issues
-
Bump Firebase JS SDK (12.19.0 → 13.0.0)Evtl. vergeben @SelaseKay hat das heute übernommen. OffenNeeds Attention type: enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
invertase/react-native-firebase#9364 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 4 Tagen
-
e2e-failure ready-to-code
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
redhat-developer/rhdh-plugin-export-overlays#4261 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug] 官网文档的图片挂了Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Maintainer antworten meist innerhalb von 1 Tag
-
area:cli bug triage:in-progress
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag