Skip to content

Commit 4b80192

Browse files
Merge master into feature/q-transform-staging
2 parents 2993f39 + 8a0c499 commit 4b80192

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/shared/vscode/uriHandler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import * as nls from 'vscode-nls'
1010
import { showViewLogsMessage } from '../utilities/messages'
1111
import { URL, URLSearchParams } from 'whatwg-url'
1212
import { VSCODE_EXTENSION_ID } from '../extensions'
13+
import { isAmazonQ } from '../extensionUtilities'
1314

1415
const localize = nls.loadMessageBundle()
1516

@@ -100,7 +101,8 @@ export class UriHandler implements vscode.UriHandler {
100101
}
101102

102103
static buildUri(path: string) {
103-
return vscode.Uri.parse(`vscode://${VSCODE_EXTENSION_ID.awstoolkit}/${path}`)
104+
const extensionId = isAmazonQ() ? VSCODE_EXTENSION_ID.amazonq : VSCODE_EXTENSION_ID.awstoolkit
105+
return vscode.Uri.parse(`vscode://${extensionId}/${path}`)
104106
}
105107
}
106108

0 commit comments

Comments
 (0)