Skip to content

Commit d796b03

Browse files
committed
refactor: move error to message bundle
1 parent 00f2035 commit d796b03

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/kotlin/com/coder/gateway/views/steps/CoderLocateRemoteProjectStepView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class CoderLocateRemoteProjectStepView(private val disableNextAction: () -> Unit
156156
override fun customizeCellRenderer(list: JList<out IdeWithStatus>, value: IdeWithStatus?, index: Int, isSelected: Boolean, cellHasFocus: Boolean) {
157157
background = UIUtil.getListBackground(isSelected, cellHasFocus)
158158
icon = UIUtil.getBalloonErrorIcon()
159-
append("Can't connect to the workspace. Please make sure Coder Agent is running!")
159+
append(CoderGatewayBundle.message("gateway.connector.view.coder.remoteproject.ssh.error.text"))
160160
}
161161
}
162162
}

src/main/resources/messages/CoderGatewayBundle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ gateway.connector.view.coder.workspaces.invalid.coder.version=Could not parse Co
2121
gateway.connector.view.coder.workspaces.unsupported.coder.version=Coder version {0} might not be compatible with this plugin version. <a href='https://coder.com/docs/coder-oss/latest/ides/gateway#creating-a-new-jetbrains-gateway-connection'>Connect to a Coder workspace manually</a>
2222
gateway.connector.view.coder.remoteproject.loading.text=Retrieving products...
2323
gateway.connector.view.coder.remoteproject.ide.error.text=Could not retrieve any IDE because an error was encountered. Please check the logs for more details!
24+
gateway.connector.view.coder.remoteproject.ssh.error.text=Can't connect to the workspace. Please make sure Coder Agent is running!
2425
gateway.connector.view.coder.remoteproject.next.text=Start IDE and connect
2526
gateway.connector.view.coder.remoteproject.choose.text=Choose IDE and project for workspace {0}
2627
gateway.connector.recentconnections.title=Recent Coder Workspaces

0 commit comments

Comments
 (0)