Это 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{ IWorkbenchContribution, IWorkbenchContributionsRegistry, WorkbenchPhase, Extensions as WorkbenchExtensions, registerWorkbenchContribution2 }from'../../../common/contributions.js';import{ Registry }from'../../../../platform/registry/common/platform.js';import{ LifecyclePhase }from'../../../services/lifecycle/common/lifecycle.js';import{ ILabelService, ResourceLabelFormatting }from'../../../../platform/label/common/label.js';import{ OperatingSystem, isWeb,OS}from'../../../../base/common/platform.js';import{ Schemas }from
IRemoteAgentService
ILoggerService
localize localize2
Disposable
IConfigurationRegistry Extensions ConfigurationExtensions
IJSONSchema
IFileService
IDialogService IFileDialogService
IWorkbenchEnvironmentService
IWorkspaceContextService
ServicesAccessor
Action2 registerAction2
Categories
PersistentConnection
IDownloadService
DownloadServiceChannel
RemoteLoggerChannelClient
product
labelService ILabelService
remoteAgentService IRemoteAgentService
remoteAgentServiceremoteEnvironment
os remoteEnvironmentos
formatting ResourceLabelFormatting
label
separator os OperatingSystemWindows
tildify os OperatingSystemWindows
normalizeDriveLetter os OperatingSystemWindows
workspaceSuffix isWeb SchemasvscodeRemote
labelService
scheme SchemasvscodeRemote
formatting
remoteEnvironment
labelService
scheme SchemasvscodeUserData
formatting
remoteAgentService IRemoteAgentService
downloadService IDownloadService
loggerService ILoggerService
connection remoteAgentService
connection
connection downloadService
connection channel loggerService channel
fileService IFileService
dialogService IDialogService
environmentService IWorkbenchEnvironmentService
contextService IWorkspaceContextService
fileDialogService IFileDialogService
remoteAgentService IRemoteAgentService
environmentServiceremoteAuthority
remoteAgentServiceremoteEnv
remoteEnv
workspace contextService
workspaceUriToStat workspaceconfiguration workspacefoldersuri
workspaceUriToStat
exists fileServiceworkspaceUriToStat
exists
res dialogService
type
message
detail
primaryButton key comment
resconfirmed
workspaceconfiguration
fileDialogService
fileDialogService
workbenchContributionsRegistry RegistryWorkbenchExtensionsWorkbench
LabelContribution LabelContribution WorkbenchPhaseBlockStartup
workbenchContributionsRegistryRemoteChannelsContribution LifecyclePhaseRestored
RemoteInvalidWorkspaceDetector RemoteInvalidWorkspaceDetector WorkbenchPhaseBlockStartup
enableDiagnostics
enableDiagnostics
id
title
category CategoriesDeveloper
f1
accessor ServicesAccessor
PersistentConnection
id
title
category CategoriesDeveloper
f1
accessor ServicesAccessor
PersistentConnection
TriggerReconnectAction
PauseSocketWriting
extensionKindSchema IJSONSchema
type
enumDescriptions
RegistryConfigurationExtensionsConfiguration
id
title
type
properties
type
markdownDescription
patternProperties
oneOf type items extensionKindSchema extensionKindSchema
type
markdownDescription
type
markdownDescription
type
markdownDescription
enumDescriptions
type
markdownDescription
type
description
type
patternProperties
type
description
properties
type
enumDescriptions
description
type
description
type
description
type
markdownDescription
type
description
markdownDescription
defaultSnippets body label onAutoForward
errorMessage
additionalProperties
type
properties
type
enumDescriptions
description
type
description
type
description
type
markdownDescription
type
description
defaultSnippets body onAutoForward
markdownDescription
additionalProperties
type
description
type
markdownDescription
productremoteDefaultExtensionsIfInstalledLocally
items
type
pattern
patternErrorMessage
// When connected to a remote workspace, we currently cannot
// validate that the workspace exists before actually opening
// it. As such, we need to check on that after startup and guide
// the user to a valid workspace.
// (see https://github.com/microsoft/vscode/issues/133872)
if
(
this
.
.
)
{
.
getEnvironment
(
)
.
then
(
=>
{
if
(
)
{
// we use the presence of `remoteEnv` to figure out
// if we got a healthy remote connection
// (see https://github.com/microsoft/vscode/issues/135331)
this
.
validateRemoteWorkspace
(
)
;
}
}
)
;
}
}
private
async
validateRemoteWorkspace
(
)
:
Promise
<
void
>
{
const
=
this
.
.
getWorkspace
(
)
;
const
=
.
??
.
.
at
(
0
)
?.
;
if
(
!
)
{
return
;
// only when in workspace
}
const
=
await
this
.
.
exists
(
)
;
if
(
)
{
return
;
// all good!
}
const
=
await
this
.
.
confirm
(
{
:
'warning'
,
:
localize
(
'invalidWorkspaceMessage'
,
"Workspace does not exist"
)
,
:
localize
(
'invalidWorkspaceDetail'
,
"Please select another workspace to open."
)
,
:
localize
(
{
:
'invalidWorkspacePrimary'
,
:
[
'&& denotes a mnemonic'
]
}
,
"&&Open Workspace..."
)
}
)
;
if
(
.
)
{
// Pick Workspace
if
(
.
)
{
return
this
.
.
pickWorkspaceAndOpen
(
{
}
)
;
}
// Pick Folder
return
this
.
.
pickFolderAndOpen
(
{
}
)
;
}
}
}
const
=
.
as<IWorkbenchContributionsRegistry>
(
.
)
;
registerWorkbenchContribution2
(
.
ID
,
,
.
)
;
.
registerWorkbenchContribution
(
,
.
)
;
registerWorkbenchContribution2
(
.
ID
,
,
.
)
;
const
=
true
;
if
(
)
{
class
TriggerReconnectAction
extends
Action2
{
constructor
(
)
{
super
(
{
:
'workbench.action.triggerReconnect'
,
:
localize2
(
'triggerReconnect'
,
'Connection: Trigger Reconnect'
)
,
:
.
,
:
true
,
}
)
;
}
async
run
(
:
)
:
Promise
<
void
>
{
.
debugTriggerReconnection
(
)
;
}
}
class
PauseSocketWriting
extends
Action2
{
constructor
(
)
{
super
(
{
:
'workbench.action.pauseSocketWriting'
,
:
localize2
(
'pauseSocketWriting'
,
'Connection: Pause socket writing'
)
,
:
.
,
:
true
,
}
)
;
}
async
run
(
:
)
:
Promise
<
void
>
{
.
debugPauseSocketWriting
(
)
;
}
}
registerAction2
(
)
;
registerAction2
(
)
;
}
const
:
=
{
:
'string'
,
enum
:
[
'ui'
,
'workspace'
]
,
:
[
localize
(
'ui'
,
"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."
)
]
,
}
;
.
as<IConfigurationRegistry>
(
.
)
.
registerConfiguration
(
{
:
'remote'
,
:
localize
(
'remote'
,
"Remote"
)
,
:
'object'
,
:
{
'remote.extensionKind'
:
{
:
'object'
,
:
localize
(
'remote.extensionKind'
,
"Override the kind of an extension. `ui` extensions are installed and run on the local machine while `workspace` extensions are run on the remote. By overriding an extension's default kind using this setting, you specify if that extension should be installed and enabled locally or remotely."
)
,
:
{
[
EXTENSION_IDENTIFIER_PATTERN
]
:
{
:
[
{
:
'array'
,
:
}
,
]
,
default
:
[
'ui'
]
,
}
,
}
,
default
:
{
'pub.name'
:
[
'ui'
]
}
}
,
'remote.restoreForwardedPorts'
:
{
:
'boolean'
,
:
localize
(
'remote.restoreForwardedPorts'
,
"Restores the ports you forwarded in a workspace."
)
,
default
:
true
}
,
'remote.autoForwardPorts'
:
{
:
'boolean'
,
:
localize
(
'remote.autoForwardPorts'
,
"When enabled, new running processes are detected and ports that they listen on are automatically forwarded. Disabling this setting will not prevent all ports from being forwarded. Even when disabled, extensions will still be able to cause ports to be forwarded, and opening some URLs will still cause ports to forwarded. Also see {0}."
,
'`#remote.autoForwardPortsSource#`'
)
,
default
:
true
}
,
'remote.autoForwardPortsSource'
:
{
:
'string'
,
:
localize
(
'remote.autoForwardPortsSource'
,
"Sets the source from which ports are automatically forwarded when {0} is true. When {0} is false, {1} will be used to find information about ports that have already been forwarded. On Windows and macOS remotes, the `process` and `hybrid` options have no effect and `output` will be used."
,
'`#remote.autoForwardPorts#`'
,
'`#remote.autoForwardPortsSource#`'
)
,
enum
:
[
'process'
,
'output'
,
'hybrid'
]
,
:
[
localize
(
'remote.autoForwardPortsSource.process'
,
"Ports will be automatically forwarded when discovered by watching for processes that are started and include a port."
)
,
localize
(
'remote.autoForwardPortsSource.output'
,
"Ports will be automatically forwarded when discovered by reading terminal and debug output. Not all processes that use ports will print to the integrated terminal or debug console, so some ports will be missed. Ports forwarded based on output will not be \"un-forwarded\" until reload or until the port is closed by the user in the Ports view."
)
,
localize
(
'remote.autoForwardPortsSource.hybrid'
,
"Ports will be automatically forwarded when discovered by reading terminal and debug output. Not all processes that use ports will print to the integrated terminal or debug console, so some ports will be missed. Ports will be \"un-forwarded\" by watching for processes that listen on that port to be terminated."
)
]
,
default
:
'process'
}
,
'remote.autoForwardPortsFallback'
:
{
:
'number'
,
default
:
20
,
:
localize
(
'remote.autoForwardPortFallback'
,
"The number of auto forwarded ports that will trigger the switch from `process` to `hybrid` when automatically forwarding ports and `remote.autoForwardPortsSource` is set to `process` by default. Set to `0` to disable the fallback. When `remote.autoForwardPortsFallback` hasn't been configured, but `remote.autoForwardPortsSource` has, `remote.autoForwardPortsFallback` will be treated as though it's set to `0`."
)
}
,
'remote.forwardOnOpen'
:
{
:
'boolean'
,
:
localize
(
'remote.forwardOnClick'
,
"Controls whether local URLs with a port will be forwarded when opened from the terminal and the debug console."
)
,
default
:
true
}
,
// Consider making changes to extensions\configuration-editing\schemas\devContainer.schema.src.json
// and extensions\configuration-editing\schemas\attachContainer.schema.json
// to keep in sync with devcontainer.json schema.
'remote.portsAttributes'
:
{
:
'object'
,
:
{
'(^\\d+(-\\d+)?$)|(.+)'
:
{
:
'object'
,
:
localize
(
'remote.portsAttributes.port'
,
"A port, range of ports (ex. \"40000-55000\"), host and port (ex. \"db:1234\"), or regular expression (ex. \".+\\\\/server.js\"). For a port number or range, the attributes will apply to that port number or range of port numbers. Attributes which use a regular expression will apply to ports whose associated process command line matches the expression."
)
,
:
{
'onAutoForward'
:
{
:
'string'
,
enum
:
[
'notify'
,
'openBrowser'
,
'openBrowserOnce'
,
'openPreview'
,
'silent'
,
'ignore'
]
,
:
[
localize
(
'remote.portsAttributes.notify'
,
"Shows a notification when a port is automatically forwarded."
)
,
localize
(
'remote.portsAttributes.openBrowser'
,
"Opens the browser when the port is automatically forwarded. Depending on your settings, this could open an embedded browser."
)
,
localize
(
'remote.portsAttributes.openBrowserOnce'
,
"Opens the browser when the port is automatically forwarded, but only the first time the port is forward during a session. Depending on your settings, this could open an embedded browser."
)
,
localize
(
'remote.portsAttributes.openPreview'
,
"Opens a preview in the same window when the port is automatically forwarded."
)
,
localize
(
'remote.portsAttributes.silent'
,
"Shows no notification and takes no action when this port is automatically forwarded."
)
,
localize
(
'remote.portsAttributes.ignore'
,
"This port will not be automatically forwarded."
)
]
,
:
localize
(
'remote.portsAttributes.onForward'
,
"Defines the action that occurs when the port is discovered for automatic forwarding"
)
,
default
:
'notify'
}
,
'elevateIfNeeded'
:
{
:
'boolean'
,
:
localize
(
'remote.portsAttributes.elevateIfNeeded'
,
"Automatically prompt for elevation (if needed) when this port is forwarded. Elevate is required if the local port is a privileged port."
)
,
default
:
false
}
,
'label'
:
{
:
'string'
,
:
localize
(
'remote.portsAttributes.label'
,
"Label that will be shown in the UI for this port."
)
,
default
:
localize
(
'remote.portsAttributes.labelDefault'
,
"Application"
)
}
,
'requireLocalPort'
:
{
:
'boolean'
,
:
localize
(
'remote.portsAttributes.requireLocalPort'
,
"When true, a modal dialog will show if the chosen local port isn't used for forwarding."
)
,
default
:
false
}
,
'protocol'
:
{
:
'string'
,
enum
:
[
'http'
,
'https'
]
,
:
localize
(
'remote.portsAttributes.protocol'
,
"The protocol to use when forwarding this port."
)
}
}
,
default
:
{
'label'
:
localize
(
'remote.portsAttributes.labelDefault'
,
"Application"
)
,
'onAutoForward'
:
'notify'
}
}
}
,
:
localize
(
'remote.portsAttributes'
,
"Set properties that are applied when a specific port number is forwarded. For example:\n\n```\n\"3000\": {\n \"label\": \"Application\"\n},\n\"40000-55000\": {\n \"onAutoForward\": \"ignore\"\n},\n\".+\\\\/server.js\": {\n \"onAutoForward\": \"openPreview\"\n}\n```"
)
,
:
[
{
:
{
'${1:3000}'
:
{
:
'${2:Application}'
,
:
'openPreview'
}
}
}
]
,
:
localize
(
'remote.portsAttributes.patternError'
,
"Must be a port number, range of port numbers, or regular expression."
)
,
:
false
,
default
:
{
'443'
:
{
'protocol'
:
'https'
}
,
'8443'
:
{
'protocol'
:
'https'
}
}
}
,
'remote.otherPortsAttributes'
:
{
:
'object'
,
:
{
'onAutoForward'
:
{
:
'string'
,
enum
:
[
'notify'
,
'openBrowser'
,
'openPreview'
,
'silent'
,
'ignore'
]
,
:
[
localize
(
'remote.portsAttributes.notify'
,
"Shows a notification when a port is automatically forwarded."
)
,
localize
(
'remote.portsAttributes.openBrowser'
,
"Opens the browser when the port is automatically forwarded. Depending on your settings, this could open an embedded browser."
)
,
localize
(
'remote.portsAttributes.openPreview'
,
"Opens a preview in the same window when the port is automatically forwarded."
)
,
localize
(
'remote.portsAttributes.silent'
,
"Shows no notification and takes no action when this port is automatically forwarded."
)
,
localize
(
'remote.portsAttributes.ignore'
,
"This port will not be automatically forwarded."
)
]
,
:
localize
(
'remote.portsAttributes.onForward'
,
"Defines the action that occurs when the port is discovered for automatic forwarding"
)
,
default
:
'notify'
}
,
'elevateIfNeeded'
:
{
:
'boolean'
,
:
localize
(
'remote.portsAttributes.elevateIfNeeded'
,
"Automatically prompt for elevation (if needed) when this port is forwarded. Elevate is required if the local port is a privileged port."
)
,
default
:
false
}
,
'label'
:
{
:
'string'
,
:
localize
(
'remote.portsAttributes.label'
,
"Label that will be shown in the UI for this port."
)
,
default
:
localize
(
'remote.portsAttributes.labelDefault'
,
"Application"
)
}
,
'requireLocalPort'
:
{
:
'boolean'
,
:
localize
(
'remote.portsAttributes.requireLocalPort'
,
"When true, a modal dialog will show if the chosen local port isn't used for forwarding."
)
,
default
:
false
}
,
'protocol'
:
{
:
'string'
,
enum
:
[
'http'
,
'https'
]
,
:
localize
(
'remote.portsAttributes.protocol'
,
"The protocol to use when forwarding this port."
)
}
}
,
:
[
{
:
{
:
'ignore'
}
}
]
,
:
localize
(
'remote.portsAttributes.defaults'
,
"Set default properties that are applied to all ports that don't get properties from the setting {0}. For example:\n\n```\n{\n \"onAutoForward\": \"ignore\"\n}\n```"
,
'`#remote.portsAttributes#`'
)
,
:
false
}
,
'remote.localPortHost'
:
{
:
'string'
,
enum
:
[
'localhost'
,
'allInterfaces'
]
,
default
:
'localhost'
,
:
localize
(
'remote.localPortHost'
,
"Specifies the local host name that will be used for port forwarding."