Skip to content

Commit 9f68b4a

Browse files
committed
Decrypt listProfiles result
1 parent 0de5068 commit 9f68b4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/src/auth/auth2.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,9 @@ export class LanguageClientAuth {
269269
return this.client.sendRequest(updateProfileRequestType.method, params)
270270
}
271271

272-
listProfiles() {
273-
return this.client.sendRequest(listProfilesRequestType.method, {}) as Promise<ListProfilesResult>
272+
async listProfiles() {
273+
const response: string = await this.client.sendRequest(listProfilesRequestType.method, {})
274+
return await this.decrypt<ListProfilesResult>(response)
274275
}
275276

276277
/**

0 commit comments

Comments
 (0)