File tree 2 files changed +3
-2
lines changed
src/main/kotlin/com/coder/gateway/views/steps
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
- Default URL setting was showing the help text for the setup command instead of
10
10
its own description.
11
+ - Exception when there is no default or last used URL.
11
12
12
13
## 2.11.2 - 2024-04-30
13
14
Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ class CoderWorkspacesStepView : CoderWizardStep<CoderWorkspacesStepSelection>(
509
509
* unless retry is false.
510
510
*/
511
511
private fun maybeAskTokenThenConnect (isRetry : Boolean = false) {
512
- val oldURL = fields.coderURL.toURL()
512
+ val oldURL = fields.coderURL
513
513
component.apply () // Force bindings to be filled.
514
514
val newURL = fields.coderURL.toURL()
515
515
if (settings.requireTokenAuth) {
@@ -518,7 +518,7 @@ class CoderWorkspacesStepView : CoderWizardStep<CoderWorkspacesStepSelection>(
518
518
newURL,
519
519
// If this is a new URL there is no point in trying to use the same
520
520
// token.
521
- if (oldURL.toString() == newURL.toString()) fields.token else null ,
521
+ if (oldURL == newURL.toString()) fields.token else null ,
522
522
isRetry,
523
523
fields.useExistingToken,
524
524
settings,
You can’t perform that action at this time.
0 commit comments