@@ -107,7 +107,7 @@ class CoderRemoteConnectionHandle {
107
107
* Generic function to ask for input.
108
108
*/
109
109
@JvmStatic
110
- fun ask (comment : String , isError : Boolean , link : Pair <String , String >? , default : String? ): String? {
110
+ fun ask (comment : String , isError : Boolean = false , link : Pair <String , String >? = null , default : String? = null ): String? {
111
111
var inputFromUser: String? = null
112
112
ApplicationManager .getApplication().invokeAndWait({
113
113
lateinit var inputTextField: JBTextField
@@ -169,7 +169,7 @@ class CoderRemoteConnectionHandle {
169
169
} else if (! isRetry && useExisting) {
170
170
val (u, t) = CoderCLIManager .readConfig()
171
171
if (url == u?.toURL() && ! t.isNullOrBlank() && t != existingToken) {
172
- logger.info(" Injecting token from CLI config" )
172
+ logger.info(" Injecting token for $url from CLI config" )
173
173
tokenSource = TokenSource .CONFIG
174
174
existingToken = t
175
175
}
@@ -178,8 +178,10 @@ class CoderRemoteConnectionHandle {
178
178
CoderGatewayBundle .message(
179
179
if (isRetry) " gateway.connector.view.workspaces.token.rejected"
180
180
else if (tokenSource == TokenSource .CONFIG ) " gateway.connector.view.workspaces.token.injected"
181
+ else if (tokenSource == TokenSource .QUERY ) " gateway.connector.view.workspaces.token.query"
181
182
else if (existingToken.isNotBlank()) " gateway.connector.view.workspaces.token.comment"
182
- else " gateway.connector.view.workspaces.token.none"
183
+ else " gateway.connector.view.workspaces.token.none" ,
184
+ url.host,
183
185
),
184
186
isRetry,
185
187
Pair (
0 commit comments