Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/**
* The directory where extensions are installed.
*/
public
get
extensionsDir
(
)
:
string
{
return
this
.
??=
this
.
.
createTempDir
(
)
;
}
/**
* The workspace directory used for testing.
*/
public
get
workspaceDir
(
)
:
string
{
return
this
.
??=
this
.
.
createTempDir
(
)
;
}
/**
* The user data directory used for testing.
*/
public
get
userDataDir
(
)
:
string
{
return
this
.
??=
this
.
.
createTempDir
(
)
;
}
/**
* Run the UI test actions.
*/
public
async
run
(
:
)
{
try
{
await
this
.
dismissWelcomeDialog
(
)
;
await
this
.
createTextFile
(
)
;
await
this
.
searchInWorkspace
(
)
;
await
this
.
installExtension
(
)
;
}
catch
(
)
{
await
this
.
.
captureScreenshot
(
)
;
throw
;
}
}
/**
* Validate the results of the UI test actions.
*/
public
validate
(
)
{
this
.
verifyTextFileCreated
(
)
;
this
.
verifyExtensionInstalled
(
)
;
}
/**
* Dismiss the welcome sign-in dialog if it is shown.
*/
public
async
dismissWelcomeDialog
(
:
)
{
this
.
.
log
(
'Dismissing welcome dialog (if shown)'
)
;
const
=
.
locator
(
'button.onboarding-a-close-btn'
)
;
try
{
await
.
waitFor
(
{
:
'visible'
,
:
8_000
}
)
;
}
catch
{
this
.
.
log
(
'Welcome dialog not shown, continuing'
)
;
return
;
}
await
.
click
(
)
;
await
.
waitFor
(
{
:
'hidden'
}
)
;
}
/**
* Run a command from the command palette.
*/
private
async
runCommand
(
:
,
:
string
)
{
this
.
.
log
(
`Running command: ${command}`
)
;
await
.
.
press
(
'F1'
)
;
const
=
.
getByPlaceholder
(
/^Type the name of a command/
)
;
await
.
fill
(
`>${command}`
)
;
const
=
.
locator
(
'span.monaco-highlighted-label'
,
{
:
new
RegExp
(
`^${command}$`
)
}
)
;
await
.
click
(
)
;
await
.
waitFor
(
{
:
'hidden'
}
)
;
}
/**
* Create a new text file in the editor with some content and save it.
*/
private
async
createTextFile
(
:
)
{
await
this
.
runCommand
(
,
'View: Show Explorer'
)
;
this
.
.
log
(
'Clicking New File button'
)
;
await
.
getByLabel
(
'New File...'
)
.
click
(
)
;
this
.
.
log
(
'Typing file name'
)
;
await
.
getByRole
(
'textbox'
,
{
:
/^Type file name/
}
)
.
fill
(
'helloWorld.txt'
)
;
await
.
.
press
(
'Enter'
)
;
this
.
.
log
(
'Focusing the code editor'
)
;
await
.
getByText
(
/Start typing/
)
.
focus
(
)
;
this
.
.
log
(
'Typing some content into the file'
)
;
await
.
.
type
(
'Hello, World!'
,
{
:
100
}
)
;
await
this
.
runCommand
(
,
'File: Save'
)
;
}
/**
* Verify that the text file was created with the expected content.
*/
protected
verifyTextFileCreated
(
)
{
this
.
.
log
(
'Verifying file contents'
)
;
const
=
`${this.workspaceDir}/helloWorld.txt`
;
const
=
.
readFileSync
(
,
'utf-8'
)
;
.
strictEqual
(
,
'Hello, World!'
,
'File contents do not match expected value'
)
;
}
/**
* Run a workspace search (Search: Find in Files) and verify ripgrep returns
* the expected match from the file created in {@link createTextFile}.
*/