Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cody status icon in remote environments #2326

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

pkukielka
Copy link
Contributor

Fixes CODY-3710

Changes

Looks like rendering status icons is not supported in the remote environments.
Instead, we are forced to display a text replacement.

Test plan

  1. Run Cody in the remote client mode (you can use :customRunIde -PsplitMode=true)
  2. Make sure "Cody" text is visible instead of the icon

image

@@ -20,7 +21,9 @@ class CodyStatusBarWidget(project: Project) : EditorBasedStatusBarPopup(project,
if (currentStatus == CodyStatus.CodyDisabled) {
return WidgetState.HIDDEN
}
val state = WidgetState(currentStatus.presentableText, "", true)
// Remote environment does not support rendering icons, so we use a placeholder text instead
val text = if (GraphicsUtil.isRemoteEnvironment()) "Cody" else ""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dominiccooney Looks like the remote checks I suggested to you before does not work as I expected, but this does.

@pkukielka pkukielka merged commit 1d31037 into main Sep 23, 2024
6 of 7 checks passed
@pkukielka pkukielka deleted the pkukielka/fix-cody-icon-on-remote branch September 23, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants