Это 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*as nls from'../../../../nls.js';import{ onUnexpectedError }from'../../../../base/common/errors.js';import{ IJSONSchema }from'../../../../base/common/jsonSchema.js';import Severity from'../../../../base/common/severity.js';import{EXTENSION_IDENTIFIER_PATTERN}from'../../../../platform/extensionManagement/common/extensionManagement.js';import{ Extensions, IJSONContributionRegistry }from'../../../../platform/jsonschemas/common/jsonContributionRegistry.js';import{ Registry }from'../../../../platform/registry/common/platform.js';import{ IMessage
IExtensionDescription ExtensionIdentifierSet
ExtensionKind
productSchemaId
ImplicitActivationEvents IActivationEventsGenerator
IDisposable
allApiProposals
schemaRegistry RegistryExtensionsJSONContribution
msg IMessage
_extension IExtensionDescription
_extensionPointId
msg IMessage
extension IExtensionDescription
extensionPointId
_messageHandler messageHandler
_extension extension
_extensionPointId extensionPointId
type Severity message
type type
message message
extensionId _extensionidentifier
extensionPointId _extensionPointId
message
SeverityError message
message
SeverityWarning message
message
SeverityInfo message
description IExtensionDescription
value
collector ExtensionMessageCollector
extensions IExtensionPointUser delta ExtensionPointUserDelta
name
handler IExtensionPointHandler IDisposable
defaultExtensionKind ExtensionKind
canHandleResolver
arr IExtensionPointUser ExtensionIdentifierSet
result
i len arrlength i len i
resultarridescriptionidentifier
result
previous IExtensionPointUser current IExtensionPointUser ExtensionPointUserDelta
previous previouslength
current
current currentlength
previous
previousSet previous
currentSet current
added currentuser previousSetuserdescriptionidentifier
removed previoususer currentSetuserdescriptionidentifier
added removed
added IExtensionPointUser
removed IExtensionPointUser
name
defaultExtensionKind ExtensionKind
canHandleResolver
_handler IExtensionPointHandler
_users IExtensionPointUser
_delta ExtensionPointUserDelta
name defaultExtensionKind ExtensionKind canHandleResolver
name name
defaultExtensionKind defaultExtensionKind
canHandleResolver canHandleResolver
_handler
_users
_delta
handler IExtensionPointHandler IDisposable
_handler
_handler handler
_handler
users IExtensionPointUser
_delta ExtensionPointUserDelta_users users
_users users
_handler _users _delta
_users _delta
err
err
extensionKindSchema IJSONSchema
type
enumDescriptions
nls
nls
schemaId
schema IJSONSchema
properties
engines
type
description nls
properties
type
description nls
publisher
description nls
type
displayName
description nls
type
categories
description nls
type
uniqueItems
items
oneOf
type
type
deprecationMessage nls
galleryBanner
type
description nls
properties
color
description nls
type
theme
description nls
type
contributes
description nls
type
properties
key
preview
type
description nls
enableProposedApi
type
deprecationMessage nls
enabledApiProposals
markdownDescription nls
type
uniqueItems
items
type
ObjectallApiProposalsproposalName proposalName
markdownEnumDescriptions ObjectallApiProposalsvalue valueproposal
api
markdownDescription nls
type
enumDescriptions
nls
activationEvents
description nls
type
items
type
defaultSnippets
label
description nls
body
label
description nls
body
label
description nls
body
label
description nls
body
label
description nls
body
label
description nls
body
label
description nls
body
label
description nls
body
label
description nls
body
label
description nls
body
label
description nls
body
label
description nls
body
label
description nls
body
label
description nls
body
label
body
description nls
label
body
description nls
label
body
description nls
label
body
description nls
label
body
description nls
label
body
description nls
label
description nls
body
label
body
description nls
label
body
description nls
label
body
description nls
label
body
description nls
label
body
description nls
label
body
description nls
label
body
description nls
label
body
description nls
label
body
description nls
label
body
description nls
label
description nls
body
label
description nls
body
badges
type
description nls
items
type
required
properties
url
type
description nls
href
type
description nls
description
type
description nls
markdown
type
description nls
qna
description nls
anyOf
type
type
extensionDependencies
description nls
type
uniqueItems
items
type
pattern
extensionAffinity
description nls
type
uniqueItems
items
type
pattern
extensionPack
description nls
type
uniqueItems
items
type
pattern
extensionKind
description nls
type
items extensionKindSchema
defaultSnippets
body
description nls
body
description nls
body
description nls
body
description nls
body
description nls
capabilities
description nls
type
properties
virtualWorkspaces
description nls
type
defaultSnippets
label body supported description
label body supported description
valueOf
properties
supported
markdownDescription nls
type
enumDescriptions
nls
nls
nls
description
type
markdownDescription nls
untrustedWorkspaces
description nls
type
required
defaultSnippets
body supported description
properties
supported
markdownDescription nls
type
enumDescriptions
nls
nls
nls
restrictedConfigurations
description nls
type
items
type
description
type
markdownDescription nls
sponsor
description nls
type
defaultSnippets
body url
properties
description nls
type
scripts
type
properties
description nls
type
description nls
type
icon
type
description nls
l10n
type
description nls
key
comment
pricing
type
markdownDescription nls
extensionPoint
deps IExtensionPoint
jsonSchema IJSONSchema
defaultExtensionKind ExtensionKind
canHandleResolver
activationEventsGenerator IActivationEventsGeneratorremoveArray
_extensionPoints
desc IExtensionPointDescriptor IExtensionPoint
_extensionPointsdescextensionPoint
descextensionPoint
result descextensionPoint descdefaultExtensionKind desccanHandleResolver
_extensionPointsdescextensionPoint result
descactivationEventsGenerator
ImplicitActivationEventsdescextensionPoint descactivationEventsGenerator
schemapropertiespropertiesdescextensionPoint descjsonSchema
schemaRegistryschemaId schema
result
ExtensionPoint
_extensionPoints
PRExtensions
ExtensionsRegistry
RegistryPRExtensionsExtensionsRegistry
ExtensionsRegistry ExtensionsRegistryImpl RegistryPRExtensionsExtensionsRegistry
schemaRegistryschemaId schema
schemaRegistryproductSchemaId
properties
extensionEnabledApiProposals
description nls
type
properties
additionalProperties
anyOf
type
uniqueItems
items
type
ObjectallApiProposals
markdownEnumDescriptions ObjectallApiProposalsvalue valueproposal
"UI extension kind. In a remote window, such extensions are enabled only when available on the local machine."
)
,
.
localize
(
'workspace'
,
"Workspace extension kind. In a remote window, such extensions are enabled only when available on the remote."
)
,
]
,
}
;
const
=
'vscode://schemas/vscode-extensions'
;
export
const
:
=
{
:
{
:
{
:
'object'
,
:
.
localize
(
'vscode.extension.engines'
,
"Engine compatibility."
)
,
:
{
'vscode'
:
{
:
'string'
,
:
.
localize
(
'vscode.extension.engines.vscode'
,
'For VS Code extensions, specifies the VS Code version that the extension is compatible with. Cannot be *. For example: ^1.105.0 indicates compatibility with a minimum VS Code version of 1.105.0.'
)
,
default
:
'^1.105.0'
,
}
}
}
,
:
{
:
.
localize
(
'vscode.extension.publisher'
,
'The publisher of the VS Code extension.'
)
,
:
'string'
}
,
:
{
:
.
localize
(
'vscode.extension.displayName'
,
'The display name for the extension used in the VS Code gallery.'
)
,
:
'string'
}
,
:
{
:
.
localize
(
'vscode.extension.categories'
,
'The categories used by the VS Code gallery to categorize the extension.'
)
,
:
'array'
,
:
true
,
:
{
:
[
{
:
'string'
,
enum
:
EXTENSION_CATEGORIES
,
}
,
{
:
'string'
,
const
:
'Languages'
,
:
.
localize
(
'vscode.extension.category.languages.deprecated'
,
'Use \'Programming Languages\' instead'
)
,
}
]
}
}
,
:
{
:
'object'
,
:
.
localize
(
'vscode.extension.galleryBanner'
,
'Banner used in the VS Code marketplace.'
)
,
:
{
:
{
:
.
localize
(
'vscode.extension.galleryBanner.color'
,
'The banner color on the VS Code marketplace page header.'
)
,
:
'string'
}
,
:
{
:
.
localize
(
'vscode.extension.galleryBanner.theme'
,
'The color theme for the font used in the banner.'
)
,
:
'string'
,
enum
:
[
'dark'
,
'light'
]
}
}
}
,
:
{
:
.
localize
(
'vscode.extension.contributes'
,
'All contributions of the VS Code extension represented by this package.'
'Sets the extension to be flagged as a Preview in the Marketplace.'
)
,
}
,
:
{
:
'boolean'
,
:
.
localize
(
'vscode.extension.enableProposedApi.deprecated'
,
'Use `enabledApiProposals` instead.'
)
,
}
,
:
{
:
.
localize
(
'vscode.extension.enabledApiProposals'
,
'Enable API proposals to try them out. Only valid **during development**. Extensions **cannot be published** with this property. For more details visit: https://code.visualstudio.com/api/advanced-topics/using-proposed-api'
)
,
:
'array'
,
:
true
,
:
{
:
'string'
,
enum
:
.
keys
(
)
.
map
(
=>
)
,
:
.
values
(
)
.
map
(
=>
.
)
}
}
,
:
{
:
.
localize
(
'vscode.extension.api'
,
'Describe the API provided by this extension. For more details visit: https://code.visualstudio.com/api/advanced-topics/remote-extensions#handling-dependencies-with-remote-extensions'
)
,
:
'string'
,
enum
:
[
'none'
]
,
:
[
.
localize
(
'vscode.extension.api.none'
,
"Give up entirely the ability to export any APIs. This allows other extensions that depend on this extension to run in a separate extension host process or in a remote machine."
'An activation event emitted whenever a list of all debug configurations needs to be created (and all provideDebugConfigurations methods for the "dynamic" scope need to be called).'
'An activation event emitted whenever a debug session with the specific type is about to be launched (and a corresponding resolveDebugConfiguration method needs to be called).'
'An activation event emitted whenever a tool from the MCP server is requested.'
)
,
:
'onMcpCollection:${2:collectionId}'
,
}
,
{
:
'*'
,
:
.
localize
(
'vscode.extension.activationEvents.star'
,
'An activation event emitted on VS Code startup. To ensure a great end user experience, please use this activation event in your extension only when no other activation events combination works in your use-case.'
)
,
:
'*'
}
]
,
}
}
,
:
{
:
'array'
,
:
.
localize
(
'vscode.extension.badges'
,
'Array of badges to display in the sidebar of the Marketplace\'s extension page.'
)
,
:
{
:
'object'
,
:
[
'url'
,
'href'
,
'description'
]
,
:
{
:
{
:
'string'
,
:
.
localize
(
'vscode.extension.badges.url'
,
'Badge image URL.'
)
}
,
:
{
:
'string'
,
:
.
localize
(
'vscode.extension.badges.href'
,
'Badge link.'
)
}
,
:
{
:
'string'
,
:
.
localize
(
'vscode.extension.badges.description'
,
'Badge description.'
)
}
}
}
}
,
:
{
:
'string'
,
:
.
localize
(
'vscode.extension.markdown'
,
"Controls the Markdown rendering engine used in the Marketplace. Either github (default) or standard."
)
,
enum
:
[
'github'
,
'standard'
]
,
default
:
'github'
}
,
:
{
default
:
'marketplace'
,
:
.
localize
(
'vscode.extension.qna'
,
"Controls the Q&A link in the Marketplace. Set to marketplace to enable the default Marketplace Q & A site. Set to a string to provide the URL of a custom Q & A site. Set to false to disable Q & A altogether."
)
,
:
[
{
:
[
'string'
,
'boolean'
]
,
enum
:
[
'marketplace'
,
false
]
}
,
{
:
'string'
}
]
}
,
:
{
:
.
localize
(
'vscode.extension.extensionDependencies'
,
'Dependencies to other extensions. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp.'
)
,
:
'array'
,
:
true
,
:
{
:
'string'
,
:
EXTENSION_IDENTIFIER_PATTERN
}
}
,
:
{
:
.
localize
(
'vscode.extension.extensionAffinity'
,
'Extensions that this extension should be colocated with in the same extension host process if possible. The identifier of an extension is always ${publisher}.${name}. For example: vscode.git.'
)
,
:
'array'
,
:
true
,
:
{
:
'string'
,
:
EXTENSION_IDENTIFIER_PATTERN
}
}
,
:
{
:
.
localize
(
'vscode.extension.contributes.extensionPack'
,
"A set of extensions that can be installed together. The identifier of an extension is always ${publisher}.${name}. For example: vscode.csharp."
)
,
:
'array'
,
:
true
,
:
{
:
'string'
,
:
EXTENSION_IDENTIFIER_PATTERN
}
}
,
:
{
:
.
localize
(
'extensionKind'
,
"Define the kind of an extension. `ui` extensions are installed and run on the local machine while `workspace` extensions run on the remote."
)
,
:
'array'
,
:
,
default
:
[
'workspace'
]
,
:
[
{
:
[
'ui'
]
,
:
.
localize
(
'extensionKind.ui'
,
"Define an extension which can run only on the local machine when connected to remote window."
)
}
,
{
:
[
'workspace'
]
,
:
.
localize
(
'extensionKind.workspace'
,
"Define an extension which can run only on the remote machine when connected remote window."
)
}
,
{
:
[
'ui'
,
'workspace'
]
,
:
.
localize
(
'extensionKind.ui-workspace'
,
"Define an extension which can run on either side, with a preference towards running on the local machine."
)
}
,
{
:
[
'workspace'
,
'ui'
]
,
:
.
localize
(
'extensionKind.workspace-ui'
,
"Define an extension which can run on either side, with a preference towards running on the remote machine."
)
}
,
{
:
[
]
,
:
.
localize
(
'extensionKind.empty'
,
"Define an extension which cannot run in a remote context, neither on the local, nor on the remote machine."
)
}
]
}
,
:
{
:
.
localize
(
'vscode.extension.capabilities'
,
"Declare the set of supported capabilities by the extension."
)
,
:
'object'
,
:
{
:
{
:
.
localize
(
'vscode.extension.capabilities.virtualWorkspaces'
,
"Declares whether the extension should be enabled in virtual workspaces. A virtual workspace is a workspace which is not backed by any on-disk resources. When false, this extension will be automatically disabled in virtual workspaces. Default is true."
"A description of how workspace trust affects the extensions behavior and why it is needed. This only applies when `supported` is not `true`."
)
,
}
}
}
}
}
,
:
{
:
.
localize
(
'vscode.extension.contributes.sponsor'
,
"Specify the location from where users can sponsor your extension."
)
,
:
'object'
,
:
[
{
:
{
:
'${1:https:}'
}
}
,
]
,
:
{
'url'
:
{
:
.
localize
(
'vscode.extension.contributes.sponsor.url'
,
"URL from where users can sponsor your extension. It must be a valid URL with a HTTP or HTTPS protocol. Example value: https://github.com/sponsors/nvaccess"
)
,
:
'string'
,
}
}
}
,
:
{
:
'object'
,
:
{
'vscode:prepublish'
:
{
:
.
localize
(
'vscode.extension.scripts.prepublish'
,
'Script executed before the package is published as a VS Code extension.'
)
,
:
'string'
}
,
'vscode:uninstall'
:
{
:
.
localize
(
'vscode.extension.scripts.uninstall'
,
'Uninstall hook for VS Code extension. Script that gets executed when the extension is completely uninstalled from VS Code which is when VS Code is restarted (shutdown and start) after the extension is uninstalled. Only Node scripts are supported.'
)
,
:
'string'
}
}
}
,
:
{
:
'string'
,
:
.
localize
(
'vscode.extension.icon'
,
'The path to a 128x128 pixel icon.'
)
}
,
:
{
:
'string'
,
:
.
localize
(
{
:
'vscode.extension.l10n'
,
:
[
'{Locked="bundle.l10n._locale_.json"}'
,
'{Locked="vscode.l10n API"}'
]
}
,
'The relative path to a folder containing localization (bundle.l10n.*.json) files. Must be specified if you are using the vscode.l10n API.'
)
}
,
:
{
:
'string'
,
:
.
localize
(
'vscode.extension.pricing'
,
'The pricing information for the extension. Can be Free (default) or Trial. For more details visit: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#extension-pricing-label'
)
,
enum
:
[
'Free'
,
'Trial'
]
,
default
:
'Free'
}
}
}
;
export
type
removeArray<T>
=
T
extends
Array<inferX>
?
X
:
T
;
export
interface
IExtensionPointDescriptor<T>
{
:
string
;
?
:
<
unknown
>
[
]
;
:
;
?
:
[
]
;
?
:
boolean
;
/**
* A function which runs before the extension point has been validated and which
* should collect automatic activation events from the contribution.
*/
?
:
<
<
T
>>
;
}
export
class
ExtensionsRegistryImpl
{
private
readonly
=
new
Map<string, ExtensionPoint<any>>
(
)
;
public
registerExtensionPoint<T>
(
:
<
T
>
)
:
<
T
>
{
if
(
this
.
.
has
(
.
)
)
{
throw
new
Error
(
'Duplicate extension point: '
+
.
)
;
}
const
=
new
ExtensionPoint<T>
(
.
,
.
,
.
)
;
this
.
.
set
(
.
,
)
;
if
(
.
)
{
.
register
(
.
,
.
)
;
}
.
!
[
'contributes'
]
.
!
[
.
]
=
.
;
.
registerSchema
(
,
)
;
return
;
}
public
getExtensionPoints
(
)
:
<
unknown
>
[
]
{
return
Array
.
from
(
this
.
.
values
(
)
)
;
}
}
const
=
{
:
'ExtensionsRegistry'
}
;
.
add
(
.
,
new
ExtensionsRegistryImpl
(
)
)
;
export
const
:
=
.
as
(
.
)
;
.
registerSchema
(
,
)
;
.
registerSchema
(
,
{
:
{
:
{
:
.
localize
(
'product.extensionEnabledApiProposals'
,
"API proposals that the respective extensions can freely use."