Skip to content

Commit 40af321

Browse files
Merge master into feature/ui-e2e-tests
2 parents a1a2d85 + c76fcc3 commit 40af321

File tree

6 files changed

+16
-44
lines changed

6 files changed

+16
-44
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/amazonq/.changes/1.82.0.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"date": "2025-07-07",
3+
"version": "1.82.0",
4+
"entries": [
5+
{
6+
"type": "Bug Fix",
7+
"description": "Prompt re-authenticate if auto trigger failed with expired token"
8+
}
9+
]
10+
}

packages/amazonq/.changes/next-release/Bug Fix-da82b914-41c2-4003-8691-73f9ec62cc68.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/amazonq/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.82.0 2025-07-07
2+
3+
- **Bug Fix** Prompt re-authenticate if auto trigger failed with expired token
4+
15
## 1.81.0 2025-07-02
26

37
- **Bug Fix** Stop auto inline completion when deleting code

packages/amazonq/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "amazon-q-vscode",
33
"displayName": "Amazon Q",
44
"description": "The most capable generative AI-powered assistant for building, operating, and transforming software, with advanced capabilities for managing data and AI",
5-
"version": "1.82.0-SNAPSHOT",
5+
"version": "1.83.0-SNAPSHOT",
66
"extensionKind": [
77
"workspace"
88
],

packages/core/src/shared/utilities/proxyUtil.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
import vscode from 'vscode'
77
import { getLogger } from '../logger/logger'
8-
import { tmpdir } from 'os'
9-
import { join } from 'path'
10-
import * as nodefs from 'fs' // eslint-disable-line no-restricted-imports
118

129
interface ProxyConfig {
1310
proxyUrl: string | undefined
@@ -101,41 +98,6 @@ export class ProxyUtil {
10198
process.env.NODE_EXTRA_CA_CERTS = config.certificateAuthority
10299
process.env.AWS_CA_BUNDLE = config.certificateAuthority
103100
this.logger.debug(`Set certificate bundle path: ${config.certificateAuthority}`)
104-
} else {
105-
// Fallback to system certificates if no custom CA is configured
106-
await this.setSystemCertificates()
107-
}
108-
}
109-
110-
/**
111-
* Sets system certificates as fallback when no custom CA is configured
112-
*/
113-
private static async setSystemCertificates(): Promise<void> {
114-
try {
115-
const tls = await import('tls')
116-
// @ts-ignore Get system certificates
117-
const systemCerts = tls.getCACertificates('system')
118-
// @ts-ignore Get any existing extra certificates
119-
const extraCerts = tls.getCACertificates('extra')
120-
const allCerts = [...systemCerts, ...extraCerts]
121-
if (allCerts && allCerts.length > 0) {
122-
this.logger.debug(`Found ${allCerts.length} certificates in system's trust store`)
123-
124-
const tempDir = join(tmpdir(), 'aws-toolkit-vscode')
125-
if (!nodefs.existsSync(tempDir)) {
126-
nodefs.mkdirSync(tempDir, { recursive: true })
127-
}
128-
129-
const certPath = join(tempDir, 'vscode-ca-certs.pem')
130-
const certContent = allCerts.join('\n')
131-
132-
nodefs.writeFileSync(certPath, certContent)
133-
process.env.NODE_EXTRA_CA_CERTS = certPath
134-
process.env.AWS_CA_BUNDLE = certPath
135-
this.logger.debug(`Set system certificate bundle path: ${certPath}`)
136-
}
137-
} catch (err) {
138-
this.logger.error(`Failed to extract system certificates: ${err}`)
139101
}
140102
}
141103
}

0 commit comments

Comments
 (0)