Skip to content

Commit 4838cdd

Browse files
committed
correctly exclude password from serverForUri response
1 parent c7162b9 commit 4838cdd

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

src/extension.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -962,20 +962,8 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
962962
// We explicitly no longer expose the password.
963963
// API client extensions can use Server Manager 3's authentication provider to get this,
964964
// which will require user consent.
965-
api.config.password = undefined;
966965

967-
const {
968-
serverName,
969-
active,
970-
host = "",
971-
https,
972-
port,
973-
pathPrefix,
974-
username,
975-
password,
976-
ns = "",
977-
apiVersion,
978-
} = api.config;
966+
const { serverName, active, host = "", https, port, pathPrefix, username, ns = "", apiVersion } = api.config;
979967
return {
980968
serverName,
981969
active,
@@ -984,7 +972,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
984972
port,
985973
pathPrefix,
986974
username,
987-
password,
975+
password: undefined,
988976
namespace: ns,
989977
apiVersion: active ? apiVersion : undefined,
990978
};

0 commit comments

Comments
 (0)