File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " vscode-objectscript" ,
3
3
"displayName" : " InterSystems ObjectScript" ,
4
4
"description" : " InterSystems ObjectScript language support for Visual Studio Code" ,
5
- "version" : " 1.9.2022080801 -SNAPSHOT" ,
5
+ "version" : " 1.9.2022080802 -SNAPSHOT" ,
6
6
"icon" : " images/logo.png" ,
7
7
"aiKey" : " 9cd75d51-697c-406c-a929-2bcf46e97c64" ,
8
8
"categories" : [
Original file line number Diff line number Diff line change @@ -1147,14 +1147,14 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
1147
1147
reporter && reporter . sendTelemetryEvent ( "extensionActivated" ) ;
1148
1148
1149
1149
// The API we export
1150
- const api = {
1150
+ const extensionApi = {
1151
1151
serverForUri ( uri : vscode . Uri ) : any {
1152
1152
const { apiTarget } = connectionTarget ( uri ) ;
1153
1153
const api = new AtelierAPI ( apiTarget ) ;
1154
1154
1155
- // We explicitly no longer expose the password for named servers .
1156
- // API client extensions can use Server Manager 3's authentication provider to get this ,
1157
- // which will require user consent.
1155
+ // This function intentionally no longer exposes the password for a named server UNLESS it is already exposed as plaintext in settings .
1156
+ // API client extensions should use Server Manager 3's authentication provider to request a missing password themselves ,
1157
+ // which will require explicit user consent to divulge the password to the requesting extension .
1158
1158
1159
1159
const {
1160
1160
serverName,
@@ -1176,7 +1176,12 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
1176
1176
port,
1177
1177
pathPrefix,
1178
1178
username,
1179
- password : serverName === "" ? password : undefined ,
1179
+ password :
1180
+ serverName === ""
1181
+ ? password
1182
+ : vscode . workspace
1183
+ . getConfiguration ( `intersystems.servers.${ serverName . toLowerCase ( ) } ` , uri )
1184
+ . get ( "password" ) ,
1180
1185
namespace : ns ,
1181
1186
apiVersion : active ? apiVersion : undefined ,
1182
1187
} ;
@@ -1209,7 +1214,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
1209
1214
} ;
1210
1215
1211
1216
// 'export' our public API
1212
- return api ;
1217
+ return extensionApi ;
1213
1218
}
1214
1219
1215
1220
export function deactivate ( ) : void {
You can’t perform that action at this time.
0 commit comments