Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
// path to the workspace (folder or *.code-workspace file) to open in the test
'workspacePath'
,
// path to the extension to test
'extensionDevelopmentPath'
,
// path to the extension tests
'extensionTestsPath'
,
// browser in which integration tests should run
'browser'
,
]
,
boolean
:
[
'help'
,
// do not run browsers headless
'debug'
,
]
,
:
{
:
'help'
}
,
default
:
{
'browser'
:
'chromium'
}
}
)
;
if
(
.
)
{
console
.
error
(
`Integration test runner for VS Code in the browser
Usage: node integration-tests-browser/out/index.js [options]
--workspacePath <path> Path to the workspace (folder or *.code-workspace file) to open in the test
--extensionDevelopmentPath <path> Path to the extension to test
--extensionTestsPath <path> Path to the extension tests
--browser <browser> Browser in which integration tests should run. separate the channel with a dash, e.g. 'chromium-msedge' or 'chromium-chrome'
--debug Do not run browsers headless
--help Print this help message
`
)
;
.
exit
(
1
)
;
}
const
=
1440
;
const
=
900
;
type
BrowserType
=
'chromium'
|
'firefox'
|
'webkit'
;
type
BrowserChannel
=
'msedge'
|
'chrome'
;
async
function
runTestsInBrowser
(
:
,
:
,
:
URL
,
:
.
)
:
Promise
<
void
>
{
const
=
await
[
]
.
launch
(
{
:
!
Boolean
(
.
)
,
:
}
)
;
const
=
await
.
newContext
(
)
;
const
=
await
.
newPage
(
)
;
await
.
setViewportSize
(
{
,
}
)
;
.
on
(
'pageerror'
,
async
=>
console
.
error
(
`Playwright ERROR: page error: ${error}`
)
)
;
.
on
(
'crash'
,
=>
console
.
error
(
'Playwright ERROR: page crash'
)
)
;
.
on
(
'response'
,
async
=>
{
if
(
.
status
(
)
>=
400
)
{
console
.
error
(
`Playwright ERROR: HTTP status ${response.status()} for ${response.url()}`
)
;
}
}
)
;
.
on
(
'console'
,
async
=>
{
try
{
if
(
.
type
(
)
===
'error'
||
.
type
(
)
===
'warning'
)
{
consoleLogFn
(
)
(
.
text
(
)
,
await
Promise
.
all
(
.
args
(
)
.
map
(
async
=>
await
.
jsonValue
(
)
)
)
)
;
}
}
catch
(
)
{
console
.
error
(
'Error logging console'
,
)
;
}
}
)
;
.
on
(
'requestfailed'
,
=>
{
console
.
error
(
'Request Failed'
,
.
url
(
)
,
.
failure
(
)
?.
)
;
}
)
;
await
.
exposeFunction
(
'codeAutomationLog'
,
(
:
string
,
:
any
[
]
)
=>
{
console
[
]
(
...
)
;
}
)
;
await
.
exposeFunction
(
'codeAutomationExit'
,
async
(
:
number
,
:
Array
<
{
readonly
:
string
;
readonly
:
string
}
>
)
=>
{
try
{
for
(
const
of
)
{
const
=
.
join
(
,
.
)
;
await
.
mkdir
(
.
dirname
(
)
,
{
:
true
}
)
;
await
.
writeFile
(
,
.
)
;
}
}
catch
(
)
{
console
.
error
(
`Error saving web client logs (${error})`
)
;
}
if
(
.
)
{
return
;
}
try
{
await
.
close
(
)
;
}
catch
(
)
{
console
.
error
(
`Error when closing browser: ${error}`
)
;
}
try
{
await
promisify
(
)
(
.
!
)
;
}
catch
(
)
{
console
.
error
(
`Error when killing server process tree (pid: ${server.pid}): ${error}`