diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b10f4a8b..60a0d9d3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,8 @@ on: branches: - master release: + branches: + - master types: - released jobs: diff --git a/src/extension.ts b/src/extension.ts index 722b1bae..603cb26b 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -968,11 +968,22 @@ export async function activate(context: vscode.ExtensionContext): Promise { const { apiTarget } = connectionTarget(uri); const api = new AtelierAPI(apiTarget); - // We explicitly no longer expose the password. + // We explicitly no longer expose the password for named servers. // API client extensions can use Server Manager 3's authentication provider to get this, // which will require user consent. - const { serverName, active, host = "", https, port, pathPrefix, username, ns = "", apiVersion } = api.config; + const { + serverName, + active, + host = "", + https, + port, + pathPrefix, + username, + password, + ns = "", + apiVersion, + } = api.config; return { serverName, active, @@ -981,7 +992,7 @@ export async function activate(context: vscode.ExtensionContext): Promise { port, pathPrefix, username, - password: undefined, + password: serverName === "" ? password : undefined, namespace: ns, apiVersion: active ? apiVersion : undefined, };