Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
'Pick from these options, or use chat to tell me what you\'d prefer:'
)
,
undefined
,
,
)
;
}
else
{
.
markdown
(
.
t
(
'Use chat to tell me which framework you\'d prefer.'
)
)
;
}
await
this
.
commandService
.
executeCommand
(
'workbench.action.chat.open'
,
{
:
`/${Intent.SetupTests}`
,
:
true
,
}
)
;
}
}
/**
* Asks the user what framework they want to use to set up their tests.
*/
export
class
SetupTestsFrameworkQueryInvocation
extends
SetupTestsFrameworkQueryInvocationRaw
implements
IIntentInvocation
{
constructor
(
public
readonly
:
IIntent
,
:
IChatEndpoint
,
public
readonly
location
:
ChatLocation
,
:
IDocumentContext
|
undefined
,
IInstantiationService
:
IInstantiationService
,
IRunCommandExecutionService
:
IRunCommandExecutionService
,
)
{
super
(
,
,
,
)
;
}
}
const
=
'FRAMEWORK: '
;
interface
WorkspacePromptProps
extends
BasePromptElementProps
{
:
IBuildPromptContext
;
document
?
:
TextDocumentSnapshot
;
?
:
.
Selection
;
:
IChatEndpoint
;
}
class
SetupTestsPrompt
extends
PromptElement<WorkspacePromptProps>
{
render
(
:
void
,
:
PromptSizing
)
:
PromptPiece
<
any
,
any
>
|
undefined
{
const
{
,
}
=
this
.
props
.
promptContext
;
return
<>
<SystemMessagepriority={1000}>
You are a software engineer with expert knowledge around software testing frameworks.
<br/>
<br/>
<CopilotIdentityRules/>
<SafetyRules/>
<EditorIntegrationRules/>
<ResponseTranslationRules/>
# Additional Rules<br />
1. Examine the workspace structure the user is giving you.
<br/>
2. Determine the best testing frameworks that should be used for the project.
<br/>
3. Give a brief explanation why a user would choose one framework over the other, but be concise and never give the user steps to set up the framework.
<br/>
4. If you're unsure which specific framework is best, you can suggest multiple frameworks.
<br/>
5. Suggest only frameworks that are used to run tests. Do not suggest things like assertion libraries or build tools.
<br/>
6. After determining the best framework to use, write out the name of 1 to 3 suggested frameworks prefixed by the phrase "{frameworkPrefix}", for example: "{frameworkPrefix}vitest".
<br/>
<br/>
DO NOT mention that you cannot read files in the workspace.
<br/>
DO NOT ask the user to provide additional information about files in the workspace.
<br/>
<br/>
# Example<br />
## Question:
<br/>
I am working in a workspace that has the following structure:
Because you have a `vite.config.ts` file, it looks like you're working on a browser or Node.js application. If you're working on a browser application, I recommend using Playwright. Otherwise, Vitest is a good choice for Node.js.