Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
// Not compatible when extension is not a web extension in web target platform
if
(
isNotWebExtensionInWebTargetPlatform
(
,
)
)
{
return
false
;
}
// Compatible when extension target platform is not defined
if
(
===
.
UNDEFINED
)
{
return
true
;
}
// Compatible when extension target platform is universal
if
(
===
.
UNIVERSAL
)
{
return
true
;
}
// Not compatible when extension target platform is unknown
if
(
===
.
UNKNOWN
)
{
return
false
;
}
// Compatible when extension and product target platforms matches
if
(
===
)
{
return
true
;
}
return
false
;
}
export
interface
IGalleryExtensionProperties
{
?
:
string
[
]
;
?
:
string
[
]
;
?
:
string
;
?
:
string
[
]
;
?
:
string
[
]
;
:
;
:
boolean
;
?
:
boolean
;
}
export
interface
IGalleryExtensionAsset
{
:
string
;
:
string
;
}
export
interface
IGalleryExtensionAssets
{
:
|
null
;
:
|
null
;
:
|
null
;
:
|
null
;
:
|
null
;
:
;
:
|
null
;
:
|
null
;
:
[
string
,
]
[
]
;
}
export
function
isIExtensionIdentifier
(
:
unknown
)
:
is
{
const
=
as
|
undefined
;
return
!
!
&&
typeof
===
'object'
&&
typeof
.
===
'string'
&&
(
!
.
||
typeof
.
===
'string'
)
;
}
export
interface
IExtensionIdentifier
{
:
string
;
?
:
string
;
}
export
interface
IGalleryExtensionIdentifier
extends
IExtensionIdentifier
{
:
string
;
}
export
interface
IGalleryExtensionVersion
{
:
string
;
:
string
;
:
boolean
;
:
[
]
;
}
export
interface
IGalleryExtension
{
:
'gallery'
;
:
string
;
:
;
:
string
;
:
string
;
:
string
;
:
string
;
:
string
;
?
:
{
:
string
;
:
boolean
}
;
?
:
string
;
?
:
string
;
:
string
;
:
number
;
:
number
;
:
number
;
:
readonly
string
[
]
;
:
readonly
string
[
]
;
:
number
;
:
number
;
:
boolean
;
private
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
:
[
]
;
:
;
:
;
?
:
string
;
?
:
string
;
?
:
string
;
?
:
<
unknown
>
;
?
:
<
unknown
>
;
}
export
type
InstallSource
=
'gallery'
|
'vsix'
|
'resource'
;
export
interface
IGalleryMetadata
{
:
string
;
:
string
;
private
:
boolean
;
:
string
;
:
boolean
;
?
:
;
}
export
type
Metadata
=
<
&
{
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
:
number
;
:
boolean
;
:
;
:
number
;
}
>
;
export
interface
ILocalExtension
extends
IExtension
{
:
boolean
;
:
boolean
;
:
boolean
;
:
string
|
null
;
?
:
number
;
:
boolean
;
:
boolean
;
private
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
:
boolean
;
:
;
:
number
;
}
export
const
enum
{
=
'NoneOrRelevance'
,
=
'LastUpdatedDate'
,
=
'Title'
,
=
'PublisherName'
,
=
'InstallCount'
,
=
'PublishedDate'
,
=
'AverageRating'
,
=
'WeightedRating'
}
export
const
enum
{
=
0
,
=
1
,
=
2
}
export
const
enum
{
=
'Category'
,
=
'ExtensionId'
,
=
'ExtensionName'
,
=
'ExcludeWithFlags'
,
=
'Featured'
,
=
'SearchText'
,
=
'Tag'
,
=
'Target'
,
}
export
interface
IQueryOptions
{
?
:
string
;
?
:
string
[
]
;
?
:
number
;
?
:
;
?
:
;
?
:
string
;
?
:
boolean
;
?
:
;
}
export
const
enum
{
=
'install'
,
=
'uninstall'
}
export
interface
IDeprecationInfo
{
readonly
?
:
boolean
;
readonly
?
:
{
readonly
:
string
;
readonly
:
string
;
readonly
?
:
{
readonly
:
boolean
;
readonly
?
:
boolean
;
}
;
readonly
?
:
boolean
;
}
;
readonly
?
:
readonly
string
[
]
;
readonly
?
:
string
;
}
export
interface
ISearchPrefferedResults
{
readonly
?
:
string
;
readonly
?
:
string
[
]
;
}
export
type
MaliciousExtensionInfo
=
{
readonly
:
|
string
;
readonly
?
:
string
;
}
;
export
interface
IExtensionsControlManifest
{
readonly
:
<
>
;
readonly
:
<
>
;
readonly
:
[
]
;
readonly
?
:
<
string
>
;
}
export
const
enum
{
=
1
,
,
,
,
}
export
interface
ITranslation
{
:
{
[
:
string
]
:
{
}
}
;
}
export
interface
IExtensionInfo
extends
IExtensionIdentifier
{
?
:
string
;
?
:
boolean
;
?
:
boolean
;
?
:
string
;
}
export
interface
IExtensionQueryOptions
{
?
:
;
?
:
;
?
:
boolean
;
?
:
boolean
;
?
:
string
;
}
export
interface
IExtensionGalleryCapabilities
{
readonly
:
{
readonly
:
readonly
[
]
;
readonly
:
readonly
[
]
;
}
;
readonly
:
boolean
;
}
export
const
=
createDecorator<IExtensionGalleryService>
(
'extensionGalleryService'
)
;
/**
* Service to interact with the Visual Studio Code Marketplace to get extensions.
* @throws Error if the Marketplace is not enabled or not reachable.
*/
export
interface
IExtensionGalleryService
{
readonly
:
undefined
;
isEnabled
(
)
:
boolean
;
query
(
:
,
:
)
:
Promise
<
<
>>
;
getExtensions
(
:
<
>
,
:
)
:
Promise
<
[
]
>
;
getExtensions
(
:
<
>
,
:
,
:
)
:
Promise
<
[
]
>
;
isExtensionCompatible
(
:
,
:
boolean
,
:
,
?
:
)
:
Promise
<
boolean
>
;
getCompatibleExtension
(
:
,
:
boolean
,
:
,
?
:
)
:
Promise
<
|
null
>
;
getAllCompatibleVersions
(
:
,
:
boolean
,
:
)
:
Promise
<
[
]
>
;
getAllVersions
(
:
)
:
Promise
<
[
]
>
;
download
(
:
,
:
URI
,
:
)
:
Promise
<
void
>
;
downloadSignatureArchive
(
:
,
:
URI
)
:
Promise
<
void
>
;
reportStatistic
(
:
string
,
:
string
,
:
string
,
:
)
:
Promise
<
void
>
;
getReadme
(
:
,
:
)
:
Promise
<
string
>
;
getManifest
(
:
,
:
)
:
Promise
<
|
null
>
;
getChangelog
(
:
,
:
)
:
Promise
<
string
>
;
getCoreTranslation
(
:
,
:
string
)
:
Promise
<
|
null
>
;
getExtensionsControlManifest
(
)
:
Promise
<
>
;
}
export
interface
InstallExtensionEvent
{
readonly
:
;
readonly
:
URI
|
;
readonly
:
URI
;
readonly
?
:
boolean
;
readonly
?
:
boolean
;
}
export
interface
InstallExtensionResult
{
readonly
:
;
readonly
:
;
readonly
?
:
URI
|
;
readonly
?
:
;
readonly
?
:
;
readonly
?
:
<
unknown
>
;
readonly
:
URI
;
readonly
?
:
boolean
;
readonly
?
:
boolean
;
}
export
interface
UninstallExtensionEvent
{
readonly
:
;
readonly
:
URI
;
readonly
?
:
boolean
;
readonly
?
:
boolean
;
}
export
interface
DidUninstallExtensionEvent
{
readonly
:
;
readonly
?
:
string
;
readonly
:
URI
;
readonly
?
:
boolean
;
readonly
?
:
boolean
;
}
export
interface
DidUpdateExtensionMetadata
{
readonly
:
URI
;
readonly
:
;
}
export
const
enum
{
=
'Timeout'
,
=
'Cancelled'
,
=
'ClientError'
,
=
'ServerError'
,
=
'Failed'
,
=
'DownloadFailedWriting'
,
=
'Offline'
,
}
export
class
ExtensionGalleryError
extends
Error
{
constructor
(
:
string
,
readonly
:
)
{
super
(
)
;
this
.
=
;
}
}
export
const
enum
{
=
'NotFound'
,
=
'Unsupported'
,
=
'Deprecated'
,
=
'Malicious'
,
=
'Incompatible'
,
=
'IncompatibleApi'
,
=
'IncompatibleTargetPlatform'
,
=
'ReleaseVersionNotFound'
,
=
'Invalid'
,
=
'Download'
,
=
'DownloadSignature'
,
=
.
,
=
'UpdateMetadata'
,
=
'Extract'
,
=
'Scanning'
,
=
'ScanningExtension'
,
=
'ReadRemoved'
,
=
'UnsetRemoved'
,
=
'Delete'
,
=
'Rename'
,
=
'IntializeDefaultProfile'
,
=
'AddToProfile'
,
=
'InstalledExtensionNotFound'
,
=
'PostInstall'
,
=
'CorruptZip'
,
=
'IncompleteZip'
,
=
'PackageNotSigned'
,
=
'SignatureVerificationInternal'
,
=
'SignatureVerificationFailed'
,
=
'NotAllowed'
,
=
'Gallery'
,
=
'Cancelled'
,
=
'Unknown'
,
=
'Internal'
,
}
export
enum
{
'NotSigned'
=
'NotSigned'
,
'Success'
=
'Success'
,
'RequiredArgumentMissing'
=
'RequiredArgumentMissing'
,
// A required argument is missing.
'InvalidArgument'
=
'InvalidArgument'
,
// An argument is invalid.
'PackageIsUnreadable'
=
'PackageIsUnreadable'
,
// The extension package is unreadable.
'UnhandledException'
=
'UnhandledException'
,
// An unhandled exception occurred.
'SignatureManifestIsMissing'
=
'SignatureManifestIsMissing'
,
// The extension is missing a signature manifest file (.signature.manifest).
'SignatureManifestIsUnreadable'
=
'SignatureManifestIsUnreadable'
,
// The signature manifest is unreadable.
'SignatureIsMissing'
=
'SignatureIsMissing'
,
// The extension is missing a signature file (.signature.p7s).
'SignatureIsUnreadable'
=
'SignatureIsUnreadable'
,
// The signature is unreadable.
'CertificateIsUnreadable'
=
'CertificateIsUnreadable'
,
// The certificate is unreadable.
'SignatureArchiveIsUnreadable'
=
'SignatureArchiveIsUnreadable'
,
'FileAlreadyExists'
=
'FileAlreadyExists'
,
// The output file already exists.
'SignatureArchiveIsInvalidZip'
=
'SignatureArchiveIsInvalidZip'
,
'SignatureArchiveHasSameSignatureFile'
=
'SignatureArchiveHasSameSignatureFile'
,
// The signature archive has the same signature file.
'PackageIntegrityCheckFailed'
=
'PackageIntegrityCheckFailed'
,
// The package integrity check failed.
'SignatureIsInvalid'
=
'SignatureIsInvalid'
,
// The extension has an invalid signature file (.signature.p7s).
'SignatureManifestIsInvalid'
=
'SignatureManifestIsInvalid'
,
// The extension has an invalid signature manifest file (.signature.manifest).
'SignatureIntegrityCheckFailed'
=
'SignatureIntegrityCheckFailed'
,
// The extension's signature integrity check failed. Extension integrity is suspect.
'EntryIsMissing'
=
'EntryIsMissing'
,
// An entry referenced in the signature manifest was not found in the extension.
'EntryIsTampered'
=
'EntryIsTampered'
,
// The integrity check for an entry referenced in the signature manifest failed.
'Untrusted'
=
'Untrusted'
,
// An X.509 certificate in the extension signature is untrusted.
'CertificateRevoked'
=
'CertificateRevoked'
,
// An X.509 certificate in the extension signature has been revoked.
'SignatureIsNotValid'
=
'SignatureIsNotValid'
,
// The extension signature is invalid.
'UnknownError'
=
'UnknownError'
,
// An unknown error occurred.
'PackageIsInvalidZip'
=
'PackageIsInvalidZip'
,
// The extension package is not valid ZIP format.
'SignatureArchiveHasTooManyEntries'
=
'SignatureArchiveHasTooManyEntries'
,
// The signature archive has too many entries.
}
export
class
ExtensionManagementError
extends
Error
{
constructor
(
:
string
,
readonly
:
)
{
super
(
)
;
this
.
=
;
}
}
export
interface
InstallExtensionSummary
{
:
{
:
string
;
:
;
}
[
]
;
}
export
type
InstallOptions
=
{
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
boolean
;
?
:
;
?
:
URI
;
?
:
;
?
:
boolean
;
?
:
boolean
;
/**
* Context passed through to InstallExtensionResult
*/
// Note: Type is set only to object because to support policies generation during build time, where single type is expected.
:
'object'
,
:
localize
(
'extensions.allowed'
,
"Specify a list of extensions that are allowed to use. This helps maintain a secure and consistent development environment by restricting the use of unauthorized extensions. For more information on how to configure this setting, please visit the [Configure Allowed Extensions](https://aka.ms/vscode/enterprise/extensions/allowed) section."
)
,
default
:
'*'
,
:
[
{
:
{
}
,
:
localize
(
'extensions.allowed.none'
,
"No extensions are allowed."
)
,
}
,
{
:
{
'*'
:
true
}
,
:
localize
(
'extensions.allowed.all'
,
"All extensions are allowed."
)
,
}
]
,
:
.
APPLICATION
,
:
{
:
'AllowedExtensions'
,
:
.
,
:
'1.96'
,
:
{
:
{
:
'extensions.allowed.policy'
,
:
localize
(
'extensions.allowed.policy'
,
"Specify a list of extensions that are allowed to use. This helps maintain a secure and consistent development environment by restricting the use of unauthorized extensions. More information: https://aka.ms/vscode/enterprise/extensions/allowed"
"Allow or disallow specific versions of the extension. To specifcy a platform specific version, use the format `platform@1.2.3`, e.g. `win32-x64@1.2.3`. Supported platforms are `win32-x64`, `win32-arm64`, `linux-x64`, `linux-arm64`, `linux-armhf`, `alpine-x64`, `alpine-arm64`, `darwin-x64`, `darwin-arm64`"
)
,
}
,
]
}
,
'([a-z0-9A-Z][a-z0-9-A-Z]*)$'
:
{
:
[
'boolean'
,
'string'
]
,
enum
:
[
true
,
false
,
'stable'
]
,
:
localize
(
'extension.publisher.allow.description'
,
"Allow or disallow all extensions from the publisher."
)
,
:
[
localize
(
'extensions.publisher.allowed.enable.desc'
,
"All extensions from the publisher are allowed."
)
,
localize
(
'extensions.publisher.allowed.disable.desc'
,
"All extensions from the publisher are not allowed."