Skip to content

Commit af59930

Browse files
authored
Use a command link to open a PR (microsoft#253623)
Fixes microsoft#253315
1 parent 74683d4 commit af59930

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/services/extensions/browser/extensionUrlHandler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { ICommandService } from '../../../../platform/commands/common/commands.j
2626
import { isCancellationError } from '../../../../base/common/errors.js';
2727
import { INotificationService } from '../../../../platform/notification/common/notification.js';
2828
import { MarkdownString } from '../../../../base/common/htmlContent.js';
29+
import { equalsIgnoreCase } from '../../../../base/common/strings.js';
2930

3031
const FIVE_MINUTES = 5 * 60 * 1000;
3132
const THIRTY_SECONDS = 30 * 1000;
@@ -181,7 +182,7 @@ class ExtensionUrlHandler implements IExtensionUrlHandler, IURLHandler {
181182
}
182183

183184
const trusted = options?.trusted
184-
|| this.productService.trustedExtensionProtocolHandlers?.includes(extensionId)
185+
|| this.productService.trustedExtensionProtocolHandlers?.some(value => equalsIgnoreCase(value, extensionId))
185186
|| this.didUserTrustExtension(ExtensionIdentifier.toKey(extensionId));
186187

187188
if (!trusted) {

0 commit comments

Comments
 (0)