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 * as fs from 'fs';
import { exec } from 'child_process';
import { app, BrowserWindow, clipboard, contentTracing, Display, Menu, MessageBoxOptions, MessageBoxReturnValue, Notification, OpenDevToolsOptions, OpenDialogOptions, OpenDialogReturnValue, powerMonitor, powerSaveBlocker, SaveDialogOptions, SaveDialogReturnValue, screen, shell, systemPreferences, webContents } from 'electron';
import { arch, cpus, freemem, loadavg, platform, release, totalmem type
promisify
memoize
Emitter Event
Disposable DisposableMap DisposableStore toDisposable
matchesSomeScheme Schemas
dirname join posix resolve win32
isLinux isMacintosh isWindows
AddFirstParameterToFunctions hasKey
virtualMachineHint
Promises SymlinkSupport
findFreePort isPortFree
localize
ISerializableCommandAction
INativeOpenDialogOptions
IDialogMainService
IEnvironmentMainService
createDecorator IInstantiationService
ILifecycleMainService IRelaunchOptions
ILogService
FocusMode IApplicationBadge ICommonNativeHostService INativeHostOptions INativeSystemWideKeybinding INativeSystemWideKeybindingResult INativeZipFile INativeZipOptions IOpenAgentsWindowOptions IOSProperties IOSProxy IOSProxyConfig IOSStatistics IStartTracingOptions IToastOptions IToastResult PowerSaveBlockerType SystemIdleState ThermalState
IGlobalKeybindingsMainService
IProductService
IPartsSplash
IThemeMainService
defaultWindowState ICodeWindow
IColorScheme IOpenedAuxiliaryWindow IOpenedMainWindow IOpenEmptyWindowOptions IOpenWindowOptions IPoint IRectangle IWindowOpenable
defaultBrowserWindowOptions IWindowsMainService OpenContext
isWorkspaceIdentifier toWorkspaceIdentifier
IWorkspacesManagementMainService
VSBuffer
hasWSLFeatureInstalled
WindowProfiler
IV8Profile
IAuxiliaryWindowsMainService
IAuxiliaryWindow
CancellationError
extract validateZip zip
IConfigurationService
IProxyAuthService
AuthInfo Credentials IRequestService
randomPath
CancellationToken CancellationTokenSource
INativeHostMainService
_serviceBrand
windowsMainService IWindowsMainService
auxiliaryWindowsMainService IAuxiliaryWindowsMainService
dialogMainService IDialogMainService
lifecycleMainService ILifecycleMainService
environmentMainService IEnvironmentMainService
logService ILogService
productService IProductService
themeMainService IThemeMainService
workspacesManagementMainService IWorkspacesManagementMainService
configurationService IConfigurationService
requestService IRequestService
proxyAuthService IProxyAuthService
instantiationService IInstantiationService
globalKeybindingsMainService IGlobalKeybindingsMainService
onDidOpenMainWindow EventwindowsMainServiceonDidOpenWindow window windowid
onDidTriggerWindowSystemContextMenu Event
EventwindowsMainServiceonDidTriggerSystemContextMenu window x y windowId windowid x y
EventauxiliaryWindowsMainServiceonDidTriggerSystemContextMenu window x y windowId windowid x y
onDidMaximizeWindow Event
EventwindowsMainServiceonDidMaximizeWindow window windowid
EventauxiliaryWindowsMainServiceonDidMaximizeWindow window windowid
onDidUnmaximizeWindow Event
EventwindowsMainServiceonDidUnmaximizeWindow window windowid
EventauxiliaryWindowsMainServiceonDidUnmaximizeWindow window windowid
onDidChangeWindowFullScreen Event
EventwindowsMainServiceonDidChangeFullScreen e windowId ewindowid fullscreen efullscreen
EventauxiliaryWindowsMainServiceonDidChangeFullScreen e windowId ewindowid fullscreen efullscreen
onDidChangeWindowAlwaysOnTop Event
EventNone
EventauxiliaryWindowsMainServiceonDidChangeAlwaysOnTop e windowId ewindowid alwaysOnTop ealwaysOnTop
onDidBlurMainWindow EventEventapp event window BrowserWindow windowid windowId windowsMainServicewindowId
onDidFocusMainWindow Event
EventEventEventwindowsMainServiceonDidChangeWindowsCount windowsMainService window window window windowid
EventEventapp event window BrowserWindow windowid windowId windowsMainServicewindowId
onDidBlurMainOrAuxiliaryWindow Event
onDidBlurMainWindow
EventEventEventapp event window BrowserWindow auxiliaryWindowsMainServicewindowwebContents window window window windowid
onDidFocusMainOrAuxiliaryWindow Event
onDidFocusMainWindow
EventEventEventapp event window BrowserWindow auxiliaryWindowsMainServicewindowwebContents window window window windowid
onDidSuspendOS EventpowerMonitor
onDidResumeOS EventpowerMonitor
onDidChangeOnBatteryPower Event
EventEventpowerMonitor
EventEventpowerMonitor
onDidChangeThermalState Event
EventpowerMonitor
e estate
onDidChangeSpeedLimit Event
EventpowerMonitor
e elimit
onWillShutdownOS EventpowerMonitor
onDidLockScreen EventpowerMonitor
onDidUnlockScreen EventpowerMonitor
onDidChangeColorScheme themeMainServiceonDidChangeColorScheme
onDidChangeDisplay EventEvent
EventEventscreen event ElectronEvent display Display changedMetrics changedMetrics changedMetrics
changedMetrics changedMetricslength changedMetrics
Eventscreen
Eventscreen
onDidOpenMainWindow Event
onDidTriggerWindowSystemContextMenu Event windowId x y
onDidMaximizeWindow Event
onDidUnmaximizeWindow Event
onDidChangeWindowFullScreen Event windowId fullscreen
onDidBlurMainWindow Event
onDidFocusMainWindow Event
onDidBlurMainOrAuxiliaryWindow Event
onDidFocusMainOrAuxiliaryWindow Event
onDidChangeWindowAlwaysOnTop Event windowId alwaysOnTop
onDidSuspendOS Event
onDidResumeOS Event
onDidChangeOnBatteryPower Event
onDidChangeThermalState EventThermalState
onDidChangeSpeedLimit Event
onWillShutdownOS Event
onDidLockScreen Event
onDidUnlockScreen Event
onDidChangeColorScheme EventIColorScheme
_onDidChangePassword
onDidChangePassword _onDidChangePasswordevent
onDidChangeDisplay Event
windowId options includeAuxiliaryWindows IOpenedMainWindow IOpenedAuxiliaryWindow
windowId options includeAuxiliaryWindows IOpenedMainWindow
windowId options includeAuxiliaryWindows IOpenedMainWindow IOpenedAuxiliaryWindow
mainWindows windowsMainServicewindow
id windowid
workspace windowopenedWorkspace windowbackupPath windowisExtensionDevelopmentHost
title windowwin
filename window
dirty window
auxiliaryWindows
optionsincludeAuxiliaryWindows
auxiliaryWindowsauxiliaryWindowsMainServicewindow
id windowid
parentId windowparentId
title windowwin
filename window
mainWindows auxiliaryWindows
windowId
windowsMainService
windowId
activeWindow windowsMainService windowsMainService
activeWindow
activeWindowid
IRectangle
activeWindow windowsMainService windowsMainService
activeWindow
activeWindow
fallbackWindowId windowId VSBuffer
window windowId fallbackWindowId
windowwin
VSBufferwindowwin
windowId options IOpenEmptyWindowOptions
windowId toOpen IWindowOpenable options IOpenWindowOptions
windowId arg1 IOpenEmptyWindowOptions IWindowOpenable arg2 IOpenWindowOptions
arg1
windowId arg1 arg2
windowId arg1
windowId toOpen IWindowOpenable options IOpenWindowOptions Object
toOpenlength
windows windowsMainService
context OpenContext
contextWindowId windowId
urisToOpen toOpen
cli environmentMainServiceargs
forceNewWindow optionsforceNewWindow
forceReuseWindow optionsforceReuseWindow
preferNewWindow optionspreferNewWindow
diffMode optionsdiffMode
mergeMode optionsmergeMode
addMode optionsaddMode
removeMode optionsremoveMode
gotoLineMode optionsgotoLineMode
noRecentEntry optionsnoRecentEntry
waitMarkerFileURI optionswaitMarkerFileURI
remoteAuthority optionsremoteAuthority
forceProfile optionsforceProfile
forceTempProfile optionsforceTempProfile
chatSessionToOpen optionschatSessionToOpen
chatSessionToOpen windowslength
windows CancellationTokenNone chatSessionToOpen
windowId options IOpenEmptyWindowOptions
windowsMainService
context OpenContext
contextWindowId windowId
options
windowId options IOpenAgentsWindowOptions
windows windowsMainService
context OpenContext
contextWindowId windowId
cli environmentMainServiceargs
optionsfolderUri optionsfolderUri optionssessionResource optionssessionResource optionssource
windowslength
windows
windowId keybindings INativeSystemWideKeybinding INativeSystemWideKeybindingResult
windowId
failed
globalKeybindingsMainServicewindowId keybindings
windowId options INativeHostOptions
window optionstargetWindowId windowId
windowisFullScreen
windowId options INativeHostOptions
window optionstargetWindowId windowId
window
windowId point IPoint display IRectangle
point screen
display screenpoint
point display displaybounds
windowId options INativeHostOptions
window optionstargetWindowId windowId
windowwin
windowId options INativeHostOptions
window optionstargetWindowId windowId
windowwin
windowId options INativeHostOptions
window optionstargetWindowId windowId
windowwin
windowId options INativeHostOptions
window optionstargetWindowId windowId
windowwin
windowId options INativeHostOptions
window optionstargetWindowId windowId
windowwin
windowId options INativeHostOptions
window optionstargetWindowId windowId
windowwin
windowId options INativeHostOptions
window optionstargetWindowId windowId
windowwinwindowwin
windowId alwaysOnTop options INativeHostOptions
window optionstargetWindowId windowId
windowwinalwaysOnTop
windowId position IRectangle options INativeHostOptions
window optionstargetWindowId windowId
windowwin
windowwin
fullscreenLeftFuture EventEventEventwindowwin
windowwin
fullscreenLeftFuture
windowwinposition
windowId options INativeHostOptions height backgroundColor foregroundColor dimmed
window optionstargetWindowId windowId
windowoptions
windowId color inactiveColor
isWindows
window windowId
window
activeWindowAccentColor
inactiveWindowAccentColor
color
activeWindowAccentColor
inactiveWindowAccentColor
color
activeWindowAccentColor
inactiveWindowAccentColor
activeWindowAccentColor color
inactiveWindowAccentColor inactiveColor color
windows window
auxiliaryWindow auxiliaryWindowsMainService
auxiliaryWindowparentId windowId
windowsauxiliaryWindow
window windows
windowwinwindowwin activeWindowAccentColor inactiveWindowAccentColor
windowId options INativeHostOptions mode FocusMode
window optionstargetWindowId windowId
window mode optionsmode FocusModeTransfer
windowId width height
window windowId
windowwin
windowWidth windowHeight windowwin
minWindowWidth minWindowHeight windowwin
newMinWindowWidth newMinWindowHeight width minWindowWidth height minWindowHeight
newWindowWidth newWindowHeight MathwindowWidth newMinWindowWidth MathwindowHeight newMinWindowHeight
minWindowWidth newMinWindowWidth minWindowHeight newMinWindowHeight
windowwinnewMinWindowWidth newMinWindowHeight
windowWidth newWindowWidth windowHeight newWindowHeight
windowwinnewWindowWidth newWindowHeight
windowId splash IPartsSplash
window windowId
themeMainServicewindowId windowopenedWorkspace splash
windowId allowed
window windowId
logService
windowwinwebContentsallowed
windowId
source target
symbolicLink SymlinkSupportsource
symbolicLink symbolicLinkdangling
linkTargetRealPath Promisessource
target linkTargetRealPath
error
errorcode
error
windowId source target
windowId source target
response windowId
type
message productServicenameShort
buttons
key comment
response
command
execcommand
error
source
windowId
source
fspromisessource
error
errorcode
response windowId
type
message productServicenameShort
buttons
key comment
response
command
execcommand
error
source
error
source target
target environmentMainServiceappRoot
source
sourceExists Promisestarget
sourceExists
target
source target
windowId options MessageBoxOptions INativeHostOptions MessageBoxReturnValue
window optionstargetWindowId windowId
dialogMainServiceoptions windowwin
windowId options SaveDialogOptions INativeHostOptions SaveDialogReturnValue
window optionstargetWindowId windowId
dialogMainServiceoptions windowwin
windowId options OpenDialogOptions INativeHostOptions OpenDialogReturnValue
window optionstargetWindowId windowId
dialogMainServiceoptions windowwin
windowId options INativeOpenDialogOptions
paths dialogMainServiceoptions
paths
paths path SymlinkSupportpath folderUri path fileUri path options windowId
windowId options INativeOpenDialogOptions
paths dialogMainServiceoptions
paths
pathspath folderUri path options windowId
windowId options INativeOpenDialogOptions
paths dialogMainServiceoptions
paths
pathspath fileUri path options windowId
windowId options INativeOpenDialogOptions
paths dialogMainServiceoptions
paths
pathspath workspaceUri path options windowId
openable IWindowOpenable options INativeOpenDialogOptions windowId
windowsMainService
context OpenContext
contextWindowId windowId
cli environmentMainServiceargs
urisToOpen openable
forceNewWindow optionsforceNewWindow
windowId path
shellpath
windowId path options INativeHostOptions
window optionstargetWindowId windowId
windowpath
windowId edited options INativeHostOptions
window optionstargetWindowId windowId
windowedited
windowId badge IApplicationBadge options INativeHostOptions
window optionstargetWindowId windowId
windowbadge
windowId url defaultApplication
environmentMainService
url Schemashttp Schemashttps
windowId url defaultApplication
windowId url
environmentMainService
windowId url defaultApplication
configuredBrowser defaultApplication configurationService
configuredBrowser
windowId url
configuredBrowserposixsep configuredBrowserwin32sep
browserPathExists PromisesconfiguredBrowser
browserPathExists
logService
windowId url
open apps
res url
app
name Objectapps configuredBrowser appsconfiguredBrowser apps configuredBrowser
isWindows
resstderr data Buffer
logService
windowId url
error
logService
windowId url
windowId url
shellurl
error
isLink
message
url Schemashttp Schemashttps
isLink
message
isLink
message
response dialogMainService
type
message
detail errormessage
buttons isLink
key comment
key comment
windowIdwin
response
windowId url
windowId fullPath
shellfullPath
windowId mediaType
isMacintosh
systemPreferencesmediaType
isAdmin
isWindows
isAdmin
isAdmin processgetuid
isAdmin
windowId source target options unlock
sudoPrompt
argsFile environmentMainServiceuserDataPath
PromisesargsFile source sourcefsPath target targetfsPath
resolve reject
sudoCommand
optionsunlock
sudoCommand
sudoCommand
promptOptions
name productServicenameLong
icns isMacintosh environmentMainServiceisBuilt environmentMainServiceappRoot
logService
sudoPromptsudoCommand promptOptions error stdout stderr
stdout
logService
stderr
logService
error
error
fspromisesargsFile
isLinux isWindows
apprunningUnderARM64Translation
isWindows
environmentMainServiceisBuilt
processexecPath
environmentMainServiceappRoot
isLinux
environmentMainServiceisBuilt
processexecPath
environmentMainServiceappRoot
environmentMainServiceisBuilt
environmentMainServiceappRoot
environmentMainServiceappRoot
IOSStatistics
totalmem
freemem
loadavg
IOSProperties
arch
platform
release
type
cpus
virtualMachineHint
IColorScheme
themeMainService
isWindows
windowId rect IRectangle options INativeHostOptions VSBuffer
window optionstargetWindowId windowId
captured windowwinwebContentsrect
buf captured
buf VSBufferbuf
_windowId token repoId fileName fileBytes VSBuffer contentType fileName assetUrl contentType
net
policyResponse net
method
headers
body
name fileName
size fileBytesbyteLength
content_type contentType
repository_id repoId
policyResponseok
text policyResponse
policy policyResponse
asset policyasset Record
formFields policyform Record
boundary
multipartBody
key value ObjectformFields
multipartBody
safeName assetname
multipartBody
epilogue
preambleBytes BuffermultipartBody
epilogueBytes Bufferepilogue
bodyBuffer BufferpreambleBytes fileBytesbuffer epilogueBytes
s3Response netpolicyupload_url
method
headers
body bodyBuffer
s3Responsestatus s3Responsestatus
text s3Response
confirmResponse net
method
headers
confirmResponseok
text confirmResponse
fileName assetUrl assethref contentType
windowId
window windowId
windowwinwebContents
windowId pid code
processpid code
windowId type
logService type
clipboardText clipboardtype
logService clipboardTextlength
clipboardText
windowId options INativeHostOptions
logService options
window optionstargetWindowId windowId
windowwinwebContents
Uint8Array
clipboard
windowId text type
clipboardtext type
windowId
clipboard
windowId text
clipboardtext
windowId format buffer VSBuffer type
clipboardformat Bufferbufferbuffer type
windowId format VSBuffer
VSBufferclipboardformat
windowId format type
clipboardformat type
windowsMainService
context OpenContext
cli environmentMainServiceargs
forceNewTabbedWindow
forceEmpty
remoteAuthority environmentMainServiceargsremote
Menu
Menu
Menu
Menu
Menu
windowId items ISerializableCommandAction
window windowId
windowitems
windowId
window windowId
window
windowId options IRelaunchOptions
lifecycleMainServiceoptions
windowId options disableExtensions
window windowId
window
windowopenedWorkspace
configPath windowopenedWorkspaceconfigPath
configPathscheme Schemasfile
workspace workspacesManagementMainServiceconfigPath
workspacetransient
windowid forceReuseWindow
lifecycleMainServicewindow optionsdisableExtensions _ optionsdisableExtensions
windowId options INativeHostOptions
window optionstargetWindowId windowId
windowwin
windowId
window windowsMainService
windowisExtensionDevelopmentHost windowsMainService windowwin
windowwin
lifecycleMainService
windowId code
lifecycleMainServicecode
windowId url
window windowId
session windowwinwebContentssession
sessionurl
_windowId url IOSProxy
resolveProxy
url
_windowId IOSProxyConfig
readProxyConfig
_windowId authInfo AuthInfo Credentials
proxyAuthServiceauthInfo
_windowId url
requestServiceurl
_windowId
requestService
windowId port
port
windowId startPort giveUpAfter timeout stride
startPort giveUpAfter timeout stride
gpuInfoWindowId
contentTracingWindowId
windowId options PartialOpenDevToolsOptions INativeHostOptions
window optionstargetWindowId windowId
windowwinwebContentsoptionsmode mode optionsmode activate optionsactivate
windowId options INativeHostOptions
window optionstargetWindowId windowId
windowwinwebContents
windowId url
parentWindow windowId
parentWindow
parentWindowwin url
parentWindow BrowserWindow url overrideWindowOptions ElectronBrowserWindowConstructorOptions BrowserWindow
options instantiationServicedefaultBrowserWindowOptions forceNativeTitlebar
windowOptions ElectronBrowserWindowConstructorOptions
options
parent parentWindow
overrideWindowOptions
window windowOptions
window
windowurl
window window
window
windowId
parentWindow windowId
parentWindow
gpuInfoWindowId
gpuInfoWindow parentWindowwin
gpuInfoWindow gpuInfoWindowId
gpuInfoWindowId gpuInfoWindowid
gpuInfoWindowId
window BrowserWindowgpuInfoWindowId
window
window
window
contentTracingWindowId
contentTracingWindow
paintWhenInitiallyHidden
webPreferences
backgroundThrottling
contentTracingWindowwebContents
contentTracingWindowwebContents
contentTracingWindow
contentTracingWindow contentTracingWindowId
contentTracingWindowId contentTracingWindowid
contentTracingWindowId
window BrowserWindowcontentTracingWindowId
window
window
window
_isTracing
windowId categories options IStartTracingOptions
_isTracing
optionsenableHeapProfiling
contentTracing
contentTracing
recording_mode
included_categories categories
memory_dump_config
triggers
mode type periodic_interval_ms
traceOptions
contentTracing
categoryFilter categories
traceOptions traceOptions
_isTracing
windowId
_isTracing environmentMainServiceargstrace
_isTracing
path contentTracing
dialogMainService
type
message
detail path
buttons key comment
BrowserWindow
path
windowId session duration IV8Profile
window windowId
windowwin
profiler windowwin session logService
result profilerduration
result
activeToasts
activeToastDedupeKeys
windowId options IToastOptions IToastResult
Notification
supported clicked
optionsdedupeKey activeToastDedupeKeysoptionsdedupeKey
supported suppressed clicked
toast
title optionstitle
body optionsbody
silent optionssilent
actions optionsactionsaction
type
text action
disposables
activeToastsoptionsid disposables
optionsdedupeKey
activeToastDedupeKeysoptionsdedupeKey optionsid
cts
disposables
activeToastsoptionsid
optionsdedupeKey activeToastDedupeKeysoptionsdedupeKey optionsid
activeToastDedupeKeysoptionsdedupeKey
toast
toast
cts
r
result IToastResult
result
disposables
disposablesctstoken supported clicked
toast supported clicked
toast _event actionIndex supported clicked actionIndex
toast supported clicked
toast supported clicked
toast
windowId toastId
activeToaststoastId
activeToasts
windowId hive path name
isWindows
Registry
Registryhive path name
windowId zipPath files INativeZipFile options INativeZipOptions
zipFiles IFile
temporaryDirectories
maxSize optionsmaxSize
file files
file contents
zipFilesfile
file sourceArchive
sourceArchive filesourceArchive
sourceArchivescheme Schemasfile
temporaryDirectory environmentMainServicetmpDirfsPath
temporaryDirectoriestemporaryDirectory
archiveSize fspromisessourceArchivefsPathsize
maxSize archiveSize maxSize
options
sourceArchivefsPath
maxEntries optionsmaxEntries
maxUncompressedSize maxSize
sourceArchivefsPath temporaryDirectory CancellationTokenNone
zipFiles temporaryDirectory
source filesource
sourcescheme Schemasfile
zipFiles path filepath localPath sourcefsPath localPathSize filesize skipSourceErrors fileskipSourceErrors
paths
uncompressedSize
availableZipFiles IFile
file zipFiles
fileSize
filecontents
fileSize filecontents Bufferfilecontents filecontentsbyteLength
filelocalPath
size fspromisesfilelocalPathsize
fileSize filelocalPathSize size Mathsize filelocalPathSize
error
fileskipSourceErrors
logService
error
pathsfilepath
pathsfilepath
availableZipFilesfile
uncompressedSize fileSize
maxSize uncompressedSize maxSize
options availableZipFileslength optionsmaxEntries
zipPathfsPath availableZipFiles
maxSize
zipSize fspromiseszipPathfsPathsize
zipSize maxSize
fspromiseszipPathfsPath force
temporaryDirectoriesdirectory Promisesdirectory
windowId idleThreshold SystemIdleState
powerMonitoridleThreshold
windowId
powerMonitor
windowId ThermalState
powerMonitor
windowId
powerMonitor
windowId type PowerSaveBlockerType
powerSaveBlockertype
windowId id
powerSaveBlockerid
windowId id
powerSaveBlockerid
windowId fallbackCodeWindowId ICodeWindow IAuxiliaryWindow
windowId windowId fallbackCodeWindowId
windowId ICodeWindow
windowId
windowsMainServicewindowId
windowId IAuxiliaryWindow
windowId
contents webContentswindowId
contents
auxiliaryWindowsMainServicecontents
root relative IFile
entries fspromisesroot relative withFileTypes
files IFile
entry entries
path relative posixrelative entryname entryname
entry
files root path
entry
files path localPath root path
files