mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
undo the code move
This commit is contained in:
parent
efa41ce786
commit
407981e477
|
@ -147,15 +147,15 @@ class ExtensionUrlHandler implements IExtensionUrlHandler, IURLHandler {
|
|||
const wasHandlerAvailable = this.extensionHandlers.has(ExtensionIdentifier.toKey(extensionId));
|
||||
const extension = await this.extensionService.getExtension(extensionId);
|
||||
|
||||
const trusted = options?.trusted
|
||||
|| (options?.originalUrl ? await this.extensionUrlTrustService.isExtensionUrlTrusted(extensionId, options.originalUrl) : false)
|
||||
|| this.didUserTrustExtension(ExtensionIdentifier.toKey(extensionId));
|
||||
|
||||
if (!extension) {
|
||||
await this.handleUnhandledURL(uri, { id: extensionId }, options);
|
||||
return true;
|
||||
}
|
||||
|
||||
const trusted = options?.trusted
|
||||
|| (options?.originalUrl ? await this.extensionUrlTrustService.isExtensionUrlTrusted(extensionId, options.originalUrl) : false)
|
||||
|| this.didUserTrustExtension(ExtensionIdentifier.toKey(extensionId));
|
||||
|
||||
if (!trusted) {
|
||||
let uriString = uri.toString(false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue