diff --git a/src/connected/connectionsetup.ts b/src/connected/connectionsetup.ts index ae62f486f..9a49af6b6 100644 --- a/src/connected/connectionsetup.ts +++ b/src/connected/connectionsetup.ts @@ -285,7 +285,7 @@ function renderConnectionSetupPanel(context: vscode.ExtensionContext, webview: v
${renderServerUrlField(initialState)} - ${renderGenerateTokenButton(initialState, serverProductName)} + ${renderGenerateTokenButton(connection, serverProductName)}
@@ -335,9 +335,9 @@ function renderConnectionSetupPanel(context: vscode.ExtensionContext, webview: v `; } -function renderServerUrlField(connection) { - if (isSonarQubeConnection(connection)) { - const serverUrl = escapeHtml(connection.serverUrl); +function renderServerUrlField(initialState) { + if (isSonarQubeConnection(initialState.conn)) { + const serverUrl = escapeHtml(initialState.conn.serverUrl); return ` Server URL iThe base URL for your SonarQube server