Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/**
* Renders the whole new-session composer (`NewChatView` → `NewChatWidget`) inside
* a `.session-view` so the draft-comments banner sits above the input the way it
* does in the Agents window.
*
* Deliberately a separate file from `newChatInput.fixture.ts`: pulling
* `NewChatView` into that module would change the order its stylesheets are
* injected in, and `.new-chat-bottom-container` is styled by two equally
* specific rules (`chatWidget.css` vs `newChatInSession.css`) that source order
* decides between.
*/
async
function
renderNewChatWidget
(
:
,
:
=
{
}
)
:
Promise
<
void
>
{
const
{
,
}
=
;
const
{
=
DEFAULT_WIDTH
,
=
DEFAULT_HEIGHT
,
=
0
,
=
false
,
,
,
,
=
false
,
=
false
,
=
false
,
=
false
,
=
false
,
}
=
;
const
:
readonly
[
]
=
Array
.
from
(
{
:
}
,
(
,
)
=>
(
{
:
`feedback-${index}`
,
:
`Comment ${index +1}`
,
:
URI
.
file
(
`/workspace/src/file-${index +1}.ts`
)
,
:
new
Range
(
+
1
,
1
,
+
1
,
8
)
,
:
AGENT_FEEDBACK_NEW_SESSION_RESOURCE
,
:
.
,
:
.
,
}
)
)
;
const
=
createFixtureWorkspace
(
)
;
const
=
createFixtureSessionTypes
(
)
;
const
=
createFixtureProvider
(
,
)
;
const
=
||
||
||
?
createFixtureActiveSession
(
,
[
0
]
)
:
undefined
;
const
=
observableValue<IActiveSession |undefined>
(
'activeSession'
,
)
;
const
=
.
add
(
new
NewSessionComposerService
(
)
)
;
const
=
new
class
extends
mock<ISessionsService>
(
)
{
readonly
=
;
}
(
)
;
const
=
createEditorServices
(
,
{
:
.
,
additionalServices
:
=>
{
registerChatFixtureServices
(
)
;
.
defineInstance
(
,
new
class
extends
mock<IUriIdentityService>
(
)
{
readonly
=
;
}
(
)
)
;
.
defineInstance
(
,
)
;
.
defineInstance
(
,
new
class
extends
mock<IChatTipService>
(
)
{
readonly
=
.
;
readonly
=
.
;
readonly
=
.
;
readonly
=
.
;
getWelcomeTip
(
)
{
return
?
{
:
'fixture-tip'
,
:
new
MarkdownString
(
'**Tip:** Reference files or folders with # to give the agent more context.'
'[aria-label="Attach a GitHub issue or pull request to the new session"]'
)
?.
click
(
)
;
}
if
(
)
{
.
.
get
(
)
?.
showPromptOptions
(
)
;
if
(
.
===
'resolved'
&&
!==
undefined
)
{
const
=
.
.
querySelectorAll<HTMLElement>
(
'.new-session-prompt-option.monaco-button'
)
;
[
]
?.
click
(
)
;
await
Promise
.
resolve
(
)
;
await
Promise
.
resolve
(
)
;
}
if
(
!==
undefined
)
{
.
prefillInput
(
)
;
}
}
}
export
default
defineThemedFixtureGroup
(
{
:
'sessions/chat/newWidget/'
}
,
{
:
defineComponentFixture
(
{
:
{
:
'screenshot'
}
,
render
:
=>
renderNewChatWidget
(
,
{
:
true
}
)
,
}
)
,
:
defineComponentFixture
(
{
:
{
:
'screenshot'
,
:
true
}
,
:
[
'The new-session composer shows Copilot, microsoft/vscode, and Issue/PR pills. The microsoft/vscode workspace pill has the active treatment after opening the workspace picker.'
]
,
render
:
=>
renderNewChatWidget
(
,
{
:
true
,
:
true
}
)
,
}
)
,
:
defineComponentFixture
(
{
:
{
:
'screenshot'
,
:
true
}
,
:
[
'The new-session composer shows Copilot, microsoft/vscode, and Issue/PR pills. The Issue/PR pill has the active treatment after opening its picker.'
]
,
render
:
=>
renderNewChatWidget
(
,
{
:
true
,
:
true
}
)
,
}
)
,
:
defineComponentFixture
(
{
:
{
:
'screenshot'
,
:
true
}
,
:
[
'The new-session workspace row shows Copilot, microsoft/vscode with a count badge showing 2, and Issue/PR with a count badge showing 1. The composer attachment row shows removable docs, microsoft/typescript, and microsoft/vscode#333053 context pills with compact dismiss icons. The folder icon is fully visible without cropping, and the GitHub issue pill includes an issue icon.'
]
,
render
:
=>
renderNewChatWidget
(
,
{
:
true
,
:
true
}
)
,
}
)
,
:
defineComponentFixture
(
{
:
{
:
'screenshot'
,
:
true
}
,
:
[
'The new-session composer shows Copilot and devbox · microsoft/vscode pills. No Issue/PR pill is visible because the remote workspace has no associated GitHub repository metadata.'
]
,
render
:
=>
renderNewChatWidget
(
,
{
:
true
}
)
,
}
)
,
:
defineComponentFixture
(
{
:
{
:
'screenshot'
}
,
render
:
=>
renderNewChatWidget
(
,
{
:
420
,
:
760
,
:
true
}
)
,
}
)
,
:
defineComponentFixture
(
{
:
{
:
'screenshot'
}
,
render
:
=>
renderNewChatWidget
(
,
{
:
3
}
)
,
}
)
,
:
defineComponentFixture
(
{
:
{
:
'screenshot'
}
,
render
:
=>
renderNewChatWidget
(
,
{
:
true
}
)
,
}
)
,
:
defineComponentFixture
(
{
:
{
:
'screenshot'
}
,
render
:
=>
renderNewChatWidget
(
,
{
:
{
:
'loading'
}
}
)
,
}
)
,
:
defineComponentFixture
(
{
:
{
:
'screenshot'
}
,
render
:
=>
renderNewChatWidget
(
,
{
:
{
:
'resolved'
,
:
createStandardPromptOptions
(
)
}
}
)
,
}
)
,
:
defineComponentFixture
(
{
:
{
:
'screenshot'
}
,
render
:
=>
renderNewChatWidget
(
,
{
:
{
:
'resolved'
,
:
createMixedPromptOptions
(
)
}
}
)
,
}
)
,
:
defineComponentFixture
(
{
:
{
:
'screenshot'
}
,
render
:
=>
renderNewChatWidget
(
,
{
:
{
:
'resolved'
,
:
createStandardPromptOptions
(
)
}
,
:
0
,
}
)
,
}
)
,
:
defineComponentFixture
(
{
:
{
:
'screenshot'
}
,
render
:
=>
{
const
=
createStandardPromptOptions
(
)
;
return
renderNewChatWidget
(
,
{
:
{
:
'resolved'
,
:
}
,
:
0
,
:
`${promptOptions[0].prompt} Add a regression test too.`
// Read by model selection: an untitled chat with no model of its own.
readonly
=
constObservable
(
.
)
;
readonly
=
constObservable<string|undefined>
(
undefined
)
;
readonly
=
constObservable<ChatModelSource |undefined>
(
undefined
)
;
}
(
)
;
return
new
class
extends
mock<IActiveSession>
(
)
{
readonly
=
URI
.
from
(
{
:
'fixture-session'
,
:
'/fixture-session'
}
)
;
readonly
=
'fixture-session'
;
readonly
=
'fixture-provider'
;
readonly
=
.
;
readonly
=
constObservable
(
.
)
;
readonly
=
constObservable
(
false
)
;
readonly
=
constObservable
(
false
)
;
readonly
=
constObservable
(
)
;
readonly
=
constObservable<string|undefined>
(
undefined
)
;
readonly
=
constObservable
(
)
;
}
(
)
;
}
function
createStandardPromptOptions
(
)
:
readonly
[
]
{
return
[
{
:
'standard:implementFeature'
,
:
'Implement a feature'
,
:
'Describe what you want to build'
,
:
'Help me implement [describe the feature] in this project. Ask me questions if anything is unclear regarding the intended behaviour.'
,
:
'[describe the feature]'
,
:
.
,
}
,
{
:
'standard:fixBug'
,
:
'Fix a bug'
,
:
'Describe the unexpected behavior'
,
:
'Help me fix [describe the bug] in this project. Ask me questions if anything is unclear regarding the bug or the intended behaviour.'
,
:
'[describe the bug]'
,
:
.
,
}
,
{
:
'standard:fixCi'
,
:
'Fix CI'
,
:
'Describe a failing check or paste a link'
,
:
'Help me fix the failing CI for [describe the CI failure or paste a link] in this project. Ask me questions if anything is unclear regarding the CI failure or how it should be fixed.'
,
:
'[describe the CI failure or paste a link]'
,
:
.
,
}
,
]
;
}
function
createMixedPromptOptions
(
)
:
readonly
[
]
{
return
[
{
:
'githubIssue:327101'
,
:
'Tackle issue'
,
:
'#327101'
,
:
'Improve the accessibility of inline chat controls'
,
:
'Tackle the following issue and create a pull request for it: "Improve the accessibility of inline chat controls" (https://github.com/microsoft/vscode/issues/327101).'
,
:
''
,
:
computeIssueIcon
(
.
,
undefined
)
,
}
,
{
:
'githubIssue:326842'
,
:
'Tackle issue'
,
:
'#326842'
,
:
'Preserve editor state when switching sessions'
,
:
'Tackle the following issue and create a pull request for it: "Preserve editor state when switching sessions" (https://github.com/microsoft/vscode/issues/326842).'
,
:
''
,
:
computeIssueIcon
(
.
,
undefined
)
,
}
,
{
:
'githubCiFailure:329629'
,
:
'Fix CI'
,
:
'#329629'
,
:
'Add GitHub prompt variation to onboarding'
,
:
'The following pull request has failing CI checks: "Add GitHub prompt variation to onboarding" (https://github.com/microsoft/vscode/pull/329629). Investigate the failures and resolve them.'