Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
"Issue troubleshooting is a process to help you identify the cause for an issue. The cause for an issue can be a misconfiguration, due to an extension, or be {0} itself.\n\nDuring the process the window reloads repeatedly. Each time you must confirm if you are still seeing the issue."
,
this
.
.
)
,
:
localize
(
{
:
'msg'
,
:
[
'&& denotes a mnemonic'
]
}
,
"&&Troubleshoot Issue"
)
,
:
true
}
)
;
if
(
!
.
)
{
return
;
}
const
=
this
.
.
;
await
this
.
.
createTroubleshootProfile
(
)
;
this
.
=
new
TroubleShootState
(
.
EXTENSIONS
,
.
)
;
await
this
.
resume
(
)
;
}
async
resume
(
)
:
Promise
<
void
>
{
if
(
!
this
.
isActive
(
)
)
{
return
;
}
if
(
this
.
?.
===
.
EXTENSIONS
&&
!
this
.
.
)
{
await
this
.
reproduceIssueWithExtensionsDisabled
(
)
;
}
if
(
this
.
?.
===
.
WORKBENCH
)
{
await
this
.
reproduceIssueWithEmptyProfile
(
)
;
}
await
this
.
stop
(
)
;
}
async
stop
(
)
:
Promise
<
void
>
{
if
(
!
this
.
isActive
(
)
)
{
return
;
}
if
(
this
.
)
{
this
.
.
close
(
)
;
this
.
=
undefined
;
}
if
(
this
.
.
)
{
await
this
.
.
reset
(
)
;
}
const
=
this
.
.
.
find
(
=>
.
===
this
.
?.
)
??
this
.
.
;
this
.
=
undefined
;
await
this
.
.
switchProfile
(
)
;
}
private
async
reproduceIssueWithExtensionsDisabled
(
)
:
Promise
<
void
>
{
if
(
!
(
await
this
.
.
getInstalled
(
.
)
)
.
)
{
this
.
=
new
TroubleShootState
(
.
WORKBENCH
,
this
.
!
.
)
;
return
;
}
const
=
await
this
.
askToReproduceIssue
(
localize
(
'profile.extensions.disabled'
,
"Issue troubleshooting is active and has temporarily disabled all installed extensions. Check if you can still reproduce the problem and proceed by selecting from these options."
)
)
;
if
(
===
'good'
)
{
const
=
this
.
.
.
find
(
=>
.
===
this
.
!
.
)
??
this
.
.
;
await
this
.
reproduceIssueWithExtensionsBisect
(
)
;
}
if
(
===
'bad'
)
{
this
.
=
new
TroubleShootState
(
.
WORKBENCH
,
this
.
!
.
)
;
}
if
(
===
'stop'
)
{
await
this
.
stop
(
)
;
}
}
private
async
reproduceIssueWithEmptyProfile
(
)
:
Promise
<
void
>
{
await
this
.
.
createAndEnterTransientProfile
(
)
;
this
.
updateState
(
this
.
)
;
const
=
await
this
.
askToReproduceIssue
(
localize
(
'empty.profile'
,
"Issue troubleshooting is active and has temporarily reset your configurations to defaults. Check if you can still reproduce the problem and proceed by selecting from these options."
)
)
;
if
(
===
'stop'
)
{
await
this
.
stop
(
)
;
}
if
(
===
'good'
)
{
await
this
.
askToReportIssue
(
localize
(
'issue is with configuration'
,
"Issue troubleshooting has identified that the issue is caused by your configurations. Please report the issue by exporting your configurations using \"Export Profile\" command and share the file in the issue report."
)
)
;
}
if
(
===
'bad'
)
{
await
this
.
askToReportIssue
(
localize
(
'issue is in core'
,
"Issue troubleshooting has identified that the issue is with {0}."
,
this
.
.
)
)
;
}
}
private
async
reproduceIssueWithExtensionsBisect
(
:
)
:
Promise
<
void
>
{
await
this
.
.
switchProfile
(
)
;
const
=
(
await
this
.
.
getInstalled
(
.
)
)
.
filter
(
=>
this
.
.
isEnabled
(
)
)
;
await
this
.
.
start
(
)
;
await
this
.
.
reload
(
)
;
}
private
askToReproduceIssue
(
:
string
)
:
Promise
<
>
{
return
new
Promise
(
(
,
)
=>
{
const
:
=
{
:
localize
(
'I cannot reproduce'
,
"I Can't Reproduce"
)
,
run
:
(
)
=>
c
(
'good'
)
}
;
const
:
=
{
:
localize
(
'This is Bad'
,
"I Can Reproduce"
)
,
run
:
(
)
=>
c
(
'bad'
)
}
;
const
:
=
{
:
localize
(
'Stop'
,
"Stop"
)
,
run
:
(
)
=>
c
(
'stop'
)
}
;
this
.
=
this
.
.
prompt
(
.
,
,
[
,
,
]
,
{
:
true
,
:
.
URGENT
}
)
;
}
)
;
}
private
async
askToReportIssue
(
:
string
)
:
Promise
<
void
>
{
let
=
false
;
if
(
this
.
.
===
'stable'
)
{
const
=
await
this
.
askToReproduceIssueWithInsiders
(
)
;
if
(
===
'good'
)
{
await
this
.
.
prompt
(
{
:
.
,
:
localize
(
'troubleshoot issue'
,
"Troubleshoot Issue"
)
,
:
localize
(
'use insiders'
,
"This likely means that the issue has been addressed already and will be available in an upcoming release. You can safely use {0} insiders until the new stable version is available."
,
this
.
.
)
,
:
true
}
)
;
return
;
}
if
(
===
'stop'
)
{
await
this
.
stop
(
)
;
return
;
}
if
(
===
'bad'
)
{
=
true
;
}
}
await
this
.
.
openReporter
(
{
:
`> ${message}${isCheckedInInsiders ?`It is confirmed that the issue exists in ${this.productService.nameLong} Insiders`:''}`
,
}
)
;
}
private
async
askToReproduceIssueWithInsiders
(
)
:
Promise
<
|
undefined
>
{
const
=
await
this
.
.
confirm
(
{
:
'info'
,
:
localize
(
'troubleshoot issue'
,
"Troubleshoot Issue"
)
,
:
localize
(
'download insiders'
,
"Download {0} Insiders"
,
this
.
.
)
,
:
localize
(
'report anyway'
,
"Report Issue Anyway"
)
,
:
localize
(
'ask to download insiders'
,
"Please try to download and reproduce the issue in {0} insiders."
,
this
.
.
)
,
:
{
:
true
,
}
}
)
;
if
(
!
.
)
{
return
undefined
;
}
const
=
await
this
.
.
open
(
URI
.
parse
(
'https://aka.ms/vscode-insiders'
)
)
;
if
(
!
)
{
return
undefined
;
}
const
=
await
this
.
.
prompt<TroubleShootResult>
(
{
:
'info'
,
:
localize
(
'troubleshoot issue'
,
"Troubleshoot Issue"
)
,
:
[
{
:
localize
(
'good'
,
"I can't reproduce"
)
,
run
:
(
)
=>
'good'
}
,
{
:
localize
(
'bad'
,
"I can reproduce"
)
,
run
:
(
)
=>
'bad'
}
]
,
:
{
:
localize
(
'stop'
,
"Stop"
)
,
run
:
(
)
=>
'stop'
}
,
:
localize
(
'ask to reproduce issue'
,
"Please try to reproduce the issue in {0} insiders and confirm if the issue exists there."