diff options
| author | Shreya Keshive <[email protected]> | 2025-08-08 17:48:02 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-08 21:48:02 +0000 |
| commit | 9ac62565a053674e701e172421455943ffc31d85 (patch) | |
| tree | 08cd66c33a99a3828d24bb45408bff1f6f996cc9 /packages/cli/src/ui/commands/ideCommand.ts | |
| parent | 344ee29f7713b6a249e510674c7410d0fb8ec2f8 (diff) | |
Fix excessive console logging + remove unnecessary try catch (#5860)
Diffstat (limited to 'packages/cli/src/ui/commands/ideCommand.ts')
| -rw-r--r-- | packages/cli/src/ui/commands/ideCommand.ts | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/packages/cli/src/ui/commands/ideCommand.ts b/packages/cli/src/ui/commands/ideCommand.ts index 29e264d4..95aa5711 100644 --- a/packages/cli/src/ui/commands/ideCommand.ts +++ b/packages/cli/src/ui/commands/ideCommand.ts @@ -83,15 +83,10 @@ async function getIdeStatusMessageWithFiles(ideClient: IdeClient): Promise<{ switch (connection.status) { case IDEConnectionStatus.Connected: { let content = `🟢 Connected to ${ideClient.getDetectedIdeDisplayName()}`; - try { - const context = await ideContext.getIdeContext(); - const openFiles = context?.workspaceState?.openFiles; - - if (openFiles && openFiles.length > 0) { - content += formatFileList(openFiles); - } - } catch (_e) { - // Ignore + const context = ideContext.getIdeContext(); + const openFiles = context?.workspaceState?.openFiles; + if (openFiles && openFiles.length > 0) { + content += formatFileList(openFiles); } return { messageType: 'info', |
