Это 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{ NativeEnvironmentService }from'../../platform/environment/node/environmentService.js';import{OPTIONS, OptionDescriptions }from'../../platform/environment/node/argv.js';import{ refineServiceDecorator }from'../../platform/instantiation/common/instantiation.js';import{ IEnvironmentService, INativeEnvironmentService }from'../../platform/environment/common/environment.js';import{ memoize }from'../../base/common/decorators.js';import{URI}from'../../base/common/uri.js'
joinPath
join
ProtocolConstants
agentHostBridgeConnectionTokenEnvironmentVariable
args ServerParsedArgs ServerParsedArgs
redactedArgs args
redactedArgs
redactedArgs
redactedArgs
redactedArgs
redactedArgs
serverOptions OptionDescriptionsRequiredServerParsedArgs
type cat args description nls
type cat args description nls
type cat args description nls
type cat args description nls
type cat args deprecates description nls
type cat args deprecates description nls
type cat description nls
type
type
type
type cat description nls
type cat description nls
type cat args description nls
type deprecates
type deprecationMessage
type deprecationMessage
type description nls
type description nls
type
type
type
type cat description nls
type
type
type allowEmptyValue
type cat args description nls
type cat args description nls
type cat args description nls
type cat args description nls
type cat args description nls
type cat args description nls
type
type
type cat args description nls
type
_
host
port
workspace
folder
force
help
version
compatibility
_
IServerEnvironmentService IEnvironmentService
machineSettingsResource
mcpResource
args ServerParsedArgs
reconnectionGraceTime
override appSettingsHome
userDataPath
userDataPath
override ServerParsedArgs args ServerParsedArgs
args ProtocolConstantsReconnectionGraceTime
rawValue fallback
rawValue rawValuelength
fallback
parsedSeconds rawValue
parsedSeconds parsedSeconds
fallback
millis MathparsedSeconds
millis millis Number
fallback
millis
/**
* Returns server arguments with connection tokens redacted for logging.
*/
export
function
getRedactedServerParsedArgs
(
:
)
:
{
const
=
{
...
}
;
if
(
typeof
[
'connection-token'
]
!==
'undefined'
)
{
[
'connection-token'
]
=
'<redacted>'
;
}
if
(
typeof
[
'agent-host-bridge-connection-token'
]
!==
'undefined'
)
{
[
'agent-host-bridge-connection-token'
]
=
'<redacted>'
;
}
return
;
}
export
const
:
<
<
>>
=
{
/* ----- server setup ----- */
'host'
:
{
:
'string'
,
:
'o'
,
:
'ip-address'
,
:
.
localize
(
'host'
,
"The host name or IP address the server should listen to. If not set, defaults to 'localhost'."
)
}
,
'port'
:
{
:
'string'
,
:
'o'
,
:
'port | port range'
,
:
.
localize
(
'port'
,
"The port the server should listen to. If 0 is passed a random free port is picked. If a range in the format num-num is passed, a free port from the range (end inclusive) is selected."
)
}
,
'socket-path'
:
{
:
'string'
,
:
'o'
,
:
'path'
,
:
.
localize
(
'socket-path'
,
"The path to a socket file for the server to listen to."
)
}
,
'server-base-path'
:
{
:
'string'
,
:
'o'
,
:
'path'
,
:
.
localize
(
'server-base-path'
,
"The path under which the web UI and the code server is provided. Defaults to '/'.`"
)
}
,
'connection-token'
:
{
:
'string'
,
:
'o'
,
:
'token'
,
:
[
'connectionToken'
]
,
:
.
localize
(
'connection-token'
,
"A secret that must be included with all requests."
)
}
,
'connection-token-file'
:
{
:
'string'
,
:
'o'
,
:
'path'
,
:
[
'connection-secret'
,
'connectionTokenFile'
]
,
:
.
localize
(
'connection-token-file'
,
"Path to a file that contains the connection token."
)
}
,
'without-connection-token'
:
{
:
'boolean'
,
:
'o'
,
:
.
localize
(
'without-connection-token'
,
"Run without a connection token. Only use this if the connection is secured by other means."
)
}
,
'disable-websocket-compression'
:
{
:
'boolean'
}
,
'print-startup-performance'
:
{
:
'boolean'
}
,
'print-ip-address'
:
{
:
'boolean'
}
,
'accept-server-license-terms'
:
{
:
'boolean'
,
:
'o'
,
:
.
localize
(
'acceptLicenseTerms'
,
"If set, the user accepts the server license terms and the server will be started without a user prompt."
)
}
,
'server-data-dir'
:
{
:
'string'
,
:
'o'
,
:
.
localize
(
'serverDataDir'
,
"Specifies the directory that server data is kept in."
)
}
,
'telemetry-level'
:
{
:
'string'
,
:
'o'
,
:
'level'
,
:
.
localize
(
'telemetry-level'
,
"Sets the initial telemetry level. Valid levels are: 'off', 'crash', 'error' and 'all'. If not specified, the server will send telemetry until a client connects, it will then use the clients telemetry setting. Setting this to 'off' is equivalent to --disable-telemetry"
)
}
,
/* ----- vs code options --- -- */
'user-data-dir'
:
OPTIONS
[
'user-data-dir'
]
,
'enable-smoke-test-driver'
:
OPTIONS
[
'enable-smoke-test-driver'
]
,
'disable-telemetry'
:
OPTIONS
[
'disable-telemetry'
]
,
'disable-experiments'
:
OPTIONS
[
'disable-experiments'
]
,
'disable-workspace-trust'
:
OPTIONS
[
'disable-workspace-trust'
]
,
'file-watcher-polling'
:
{
:
'string'
,
:
[
'fileWatcherPolling'
]
}
,
'log'
:
OPTIONS
[
'log'
]
,
'logsPath'
:
OPTIONS
[
'logsPath'
]
,
'force-disable-user-env'
:
OPTIONS
[
'force-disable-user-env'
]
,
'enable-proposed-api'
:
OPTIONS
[
'enable-proposed-api'
]
,
/* ----- vs code web options ----- */
'folder'
:
{
:
'string'
,
:
'No longer supported. Folder needs to be provided in the browser URL or with `default-folder`.'
}
,
'workspace'
:
{
:
'string'
,
:
'No longer supported. Workspace needs to be provided in the browser URL or with `default-workspace`.'
}
,
'default-folder'
:
{
:
'string'
,
:
.
localize
(
'default-folder'
,
'The workspace folder to open when no input is specified in the browser URL. A relative or absolute path resolved against the current working directory.'
)
}
,
'default-workspace'
:
{
:
'string'
,
:
.
localize
(
'default-workspace'
,
'The workspace to open when no input is specified in the browser URL. A relative or absolute path resolved against the current working directory.'
)
}
,
'enable-sync'
:
{
:
'boolean'
}
,
'github-auth'
:
{
:
'string'
}
,
'use-test-resolver'
:
{
:
'boolean'
}
,
/* ----- extension management ----- */
'extensions-dir'
:
OPTIONS
[
'extensions-dir'
]
,
'extensions-download-dir'
:
OPTIONS
[
'extensions-download-dir'
]
,
'builtin-extensions-dir'
:
OPTIONS
[
'builtin-extensions-dir'
]
,
'install-extension'
:
OPTIONS
[
'install-extension'
]
,
'install-builtin-extension'
:
OPTIONS
[
'install-builtin-extension'
]
,
'update-extensions'
:
OPTIONS
[
'update-extensions'
]
,
'uninstall-extension'
:
OPTIONS
[
'uninstall-extension'
]
,
'list-extensions'
:
OPTIONS
[
'list-extensions'
]
,
'locate-extension'
:
OPTIONS
[
'locate-extension'
]
,
'show-versions'
:
OPTIONS
[
'show-versions'
]
,
'category'
:
OPTIONS
[
'category'
]
,
'force'
:
OPTIONS
[
'force'
]
,
'do-not-sync'
:
OPTIONS
[
'do-not-sync'
]
,
'do-not-include-pack-dependencies'
:
OPTIONS
[
'do-not-include-pack-dependencies'
]
,
'pre-release'
:
OPTIONS
[
'pre-release'
]
,
'start-server'
:
{
:
'boolean'
,
:
'e'
,
:
.
localize
(
'start-server'
,
"Start the server when installing or uninstalling extensions. To be used in combination with 'install-extension', 'install-builtin-extension' and 'uninstall-extension'."
)
}
,
/* ----- remote development options ----- */
'enable-remote-auto-shutdown'
:
{
:
'boolean'
}
,
'remote-auto-shutdown-without-delay'
:
{
:
'boolean'
}
,
'inspect-ptyhost'
:
{
:
'string'
,
:
true
}
,
'agent-host-port'
:
{
:
'string'
,
:
'o'
,
:
'port'
,
:
.
localize
(
'agent-host-port'
,
"The port the agent host WebSocket server should listen on."
)
}
,
'agent-host-path'
:
{
:
'string'
,
:
'o'
,
:
'path'
,
:
.
localize
(
'agent-host-path'
,
"The path to a socket file for the agent host WebSocket server to listen on."
)
}
,
'agent-host-bridge-port'
:
{
:
'string'
,
:
'o'
,
:
'port'
,
:
.
localize
(
'agent-host-bridge-port'
,
"Bridge renderer agent-host traffic to an already-running agent host listening on this port. Does not spawn an agent host."
)
}
,
'agent-host-bridge-path'
:
{
:
'string'
,
:
'o'
,
:
'path'
,
:
.
localize
(
'agent-host-bridge-path'
,
"Bridge renderer agent-host traffic to an already-running agent host listening on this socket path. Does not spawn an agent host."
)
}
,
'agent-host-bridge-host'
:
{
:
'string'
,
:
'o'
,
:
'host'
,
:
.
localize
(
'agent-host-bridge-host'
,
"Host the externally-running agent host is reachable at when used with --agent-host-bridge-port. Defaults to localhost."
)
}
,
'agent-host-bridge-connection-token'
:
{
:
'string'
,
:
'o'
,
:
'token'
,
:
.
localize
(
'agent-host-bridge-connection-token'
,
"Connection token required by the externally-running agent host when used with --agent-host-bridge-port."
)
}
,
'use-host-proxy'
:
{
:
'boolean'
}
,
'without-browser-env-var'
:
{
:
'boolean'
}
,
'reconnection-grace-time'
:
{
:
'string'
,
:
'o'
,
:
'seconds'
,
:
.
localize
(
'reconnection-grace-time'
,
"Override the reconnection grace time window in seconds. Defaults to 10800 (3 hours)."
)
}
,
/* ----- server cli ----- */
'help'
:
OPTIONS
[
'help'
]
,
'version'
:
OPTIONS
[
'version'
]
,
'locate-shell-integration-path'
:
OPTIONS
[
'locate-shell-integration-path'
]
,
'compatibility'
:
{
:
'string'
}
,
:
OPTIONS
[
'_'
]
}
;
export
interface
ServerParsedArgs
{
/* ----- server setup ----- */
?
:
string
;
/**
* A port or a port range
*/
?
:
string
;
'socket-path'
?
:
string
;
/**
* The path under which the web UI and the code server is provided.
* By defaults it is '/'.`
*/
'server-base-path'
?
:
string
;
/**
* A secret token that must be provided by the web client with all requests.
* Use only `[0-9A-Za-z\-]`.
*
* By default, a UUID will be generated every time the server starts up.
*
* If the server is running on a multi-user system, then consider
* using `--connection-token-file` which has the advantage that the token cannot
* be seen by other users using `ps` or similar commands.
*/
'connection-token'
?
:
string
;
/**
* A path to a filename which will be read on startup.
* Consider placing this file in a folder readable only by the same user (a `chmod 0700` directory).
*
* The contents of the file will be used as the connection token. Use only `[0-9A-Z\-]` as contents in the file.
* The file can optionally end in a `\n` which will be ignored.
*
* This secret must be communicated to any vscode instance via the resolver or embedder API.
*/
'connection-token-file'
?
:
string
;
/**
* Run the server without a connection token
*/