ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Uri } from 'vscode';
/**
* Check whether a URL matches the list of trusted domains or URIs.
*
* trustedDomains is an object where:
* - Keys are full domains (https://www.microsoft.com) or full URIs (https://www.test.com/schemas/mySchema.json)
* - Keys can include wildcards (https://*.microsoft.com) or glob patterns
* - Values are booleans indicating if the domain/URI is trusted (true) or blocked (false)
*
* @param url The URL to check
* @param trustedDomains Object mapping domain patterns to boolean trust values
*/
export function matchesUrlPattern(url: Uri, trustedDomains: Record<string, boolean>): boolean {
// Check localhost
if (isLocalhostAuthority(url.authority)) {
return true;
}
for pattern isTrusted ObjecttrustedDomains
pattern pattern
pattern
isTrusted
patternUri Uripattern
urlscheme patternUrischeme
urlauthority patternUriauthority
urlpath patternUripath
isTrusted
urlAuthority patternAuthority
urlAuthority urlAuthority
patternAuthority patternAuthority
patternAuthority urlAuthority
patternAuthority
patternDomain patternAuthority
urlAuthority patternDomain urlAuthority patternDomain
urlPath patternPath
patternPath patternPath
urlPath patternPath
patternPath
urlPathpatternPath
urlPathpatternPath urlPath patternPath
rLocalhost
r127
rIPv6Localhost
authority
rLocalhostauthority r127authority rIPv6Localhostauthority