Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
'Track when a file was read, for example from an editor.'
;
}
&
;
this
.
.
publicLog2<TelemetryData, FileGetClassification>
(
'fileGet'
,
this
.
getTelemetryData
(
.
.
,
.
)
)
;
}
}
private
onTextFileModelSaved
(
:
)
:
void
{
const
=
this
.
getTypeIfSettings
(
.
.
)
;
if
(
!
)
{
type
FilePutClassfication
=
{
:
'isidorn'
;
:
'Track when a file was written to, for example from an editor.'
;
}
&
;
this
.
.
publicLog2<TelemetryData, FilePutClassfication>
(
'filePUT'
,
this
.
getTelemetryData
(
.
.
,
.
)
)
;
}
}
private
getTypeIfSettings
(
:
URI
)
:
string
{
if
(
extname
(
)
!==
'.json'
)
{
return
''
;
}
// Check for global settings file
if
(
isEqual
(
,
this
.
.
.
)
)
{
return
'global-settings'
;
}
// Check for keybindings file
if
(
isEqual
(
,
this
.
.
.
)
)
{
return
'keybindings'
;
}
// Check for snippets
if
(
isEqualOrParent
(
,
this
.
.
.
)
)
{
return
'snippets'
;
}
// Check for workspace settings file
const
=
this
.
.
getWorkspace
(
)
.
;
for
(
const
of
)
{
if
(
isEqualOrParent
(
,
.
toResource
(
'.vscode'
)
)
)
{
const
=
basename
(
)
;
if
(
.
ALLOWLIST_WORKSPACE_JSON
.
indexOf
(
)
>
-
1
)
{
return
`.vscode/${filename}`
;
}
}
}
return
''
;
}
private
getTelemetryData
(
:
URI
,
?
:
number
)
:
{
let
=
extname
(
)
;
// Remove query parameters from the resource extension
const
=
.
indexOf
(
'?'
)
;
=
!==
-
1
?
.
substr
(
0
,
)
:
;
const
=
basename
(
)
;
const
=
.
===
.
?
.
:
.
;
const
=
{
:
new
TelemetryTrustedValue
(
getMimeTypes
(
)
.
join
(
', '
)
)
,
,
:
hash
(
)
,
,
:
undefined
as
string
|
undefined
}
;
if
(
===
'.json'
&&
.
ALLOWLIST_JSON
.
indexOf
(
)
>
-
1
)
{
[
'allowlistedjson'
]
=
;
}
return
;
}
private
async
handleTelemetryOutputVisibility
(
)
:
Promise
<
void
>
{
const
=
this
;
this
.
_register
(
registerAction2
(
class
extends
{
constructor
(
)
{
super
(
{
:
'workbench.action.showTelemetry'
,
:
localize2
(
'showTelemetry'
,
"Show Telemetry"
)
,
:
.
,
:
true
}
)
;
}
async
run
(
)
:
Promise
<
void
>
{
for
(
const
of
.
.
getRegisteredLoggers
(
)
)
{
if
(
.
?.
===
.
)
{
.
.
setLogLevel
(
.
,
.
)
;
.
.
setVisibility
(
.
,
true
)
;
}
}
.
.
showChannel
(
.
)
;
}
}
)
)
;
if
(
!
[
...
this
.
.
getRegisteredLoggers
(
)
]
.
find
(
=>
.
===
)
)
{
await
.
toPromise
(
.
filter
(
this
.
.
,
=>
[
...
.
]
.
some
(
=>
.
===
)
)
)
;
}
let
=
false
;
for
(
const
of
this
.
.
getRegisteredLoggers
(
)
)
{
if
(
.
===
)
{
=
this
.
.
getLogLevel
(
)
===
.
||
!
.
;
if
(
)
{
this
.
.
setVisibility
(
.
,
true
)
;
}
break
;
}
}
if
(
)
{
const
showExtensionTelemetry
=
(
:
<
>
)
=>
{
for
(
const
of
)
{
if
(
.
?.
===
.
)
{
.
.
setLogLevel
(
.
,
.
)
;
this
.
.
setVisibility
(
.
,
true
)
;
}
}
}
;
showExtensionTelemetry
(
this
.
.
getRegisteredLoggers
(
)
)
;
this
.
_register
(
this
.
.
onDidChangeLoggers
(
=>
showExtensionTelemetry
(
.
)
)
)
;
}
}
}
class
ConfigurationTelemetryContribution
extends
Disposable
implements
IWorkbenchContribution
{
private
readonly
=
.
as<IConfigurationRegistry>
(
.
)
;
constructor
(
@IConfigurationService
private
readonly
:
,
@IUserDataProfilesService
private
readonly
:
,
@ITelemetryService
private
readonly
:
,
)
{
super
(
)
;
const
{
,
}
=
.
keys
(
)
;
for
(
const
of
)
{
this
.
reportTelemetry
(
,
.
USER_LOCAL
)
;
}
for
(
const
of
)
{
this
.
reportTelemetry
(
,
.
WORKSPACE
)
;
}
}
/**
* Report value of a setting only if it is an enum, boolean, or number or an array of those.
*/
private
getValueToReport
(
:
string
,
:
.
USER_LOCAL
|
.
WORKSPACE
)
:
string
|
undefined
{
const
=
this
.
.
inspect
(
)
;
const
=
===
.
USER_LOCAL
?
.
?.
:
.
?.
;
if
(
isNumber
(
)
||
isBoolean
(
)
)
{
return
.
toString
(
)
;
}
const
=
this
.
.
getConfigurationProperties
(
)
[
]
;
if
(
isString
(
)
)
{
if
(
?.
?.
includes
(
)
)
{
return
;
}
return
undefined
;
}
if
(
Array
.
isArray
(
)
)
{
if
(
.
every
(
=>
isNumber
(
)
||
isBoolean
(
)
||
(
isString
(
)
&&
?.
?.
includes
(
)
)
)
)
{
return
JSON
.
stringify
(
)
;
}
}
return
undefined
;
}
private
reportTelemetry
(
:
string
,
:
.
USER_LOCAL
|
.
WORKSPACE
)
:
void
{
type
UpdatedSettingEvent
=
{
:
string
|
undefined
;
:
string
;
}
;
const
=
ConfigurationTargetToString
(
)
;
switch
(
)
{
case
.
ACTIVITY_BAR_LOCATION
:
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'sandy081';
comment:'This is used to know where activity bar is shown in the workbench.';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
(
'workbench.activityBar.location'
,
{
:
this
.
getValueToReport
(
,
)
,
}
)
;
return
;
case
.
MODERN_UI
:
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'mrleemurray';
comment:'This is used to know if the experimental Modern UI Update is explicitly enabled or disabled by the user.';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
(
'workbench.experimental.modernUI'
,
{
:
this
.
getValueToReport
(
,
)
,
}
)
;
return
;
case
.
MODERN_UI_DENSITY
:
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'mrleemurray';
comment:'This is used to know which Modern UI Update spacing density the user has selected.';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
(
'window.density.layout'
,
{
:
this
.
getValueToReport
(
,
)
,
}
)
;
return
;
case
:
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'sandy081';
comment:'This is used to know if extensions are getting auto updated or not';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
(
'extensions.autoUpdate'
,
{
:
this
.
getValueToReport
(
,
)
,
}
)
;
return
;
case
'editor.stickyScroll.enabled'
:
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'aiday-mar';
comment:'This is used to know if editor sticky scroll is enabled or not';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
(
'editor.stickyScroll.enabled'
,
{
:
this
.
getValueToReport
(
,
)
,
}
)
;
return
;
case
'typescript.experimental.expandableHover'
:
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'aiday-mar';
comment:'This is used to know if the TypeScript expandbale hover is enabled or not';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
(
'typescript.experimental.expandableHover'
,
{
:
this
.
getValueToReport
(
,
)
,
}
)
;
return
;
case
'window.titleBarStyle'
:
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'benibenj';
comment:'This is used to know if window title bar style is set to custom or not';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
(
'window.titleBarStyle'
,
{
:
this
.
getValueToReport
(
,
)
,
}
)
;
return
;
case
'workbench.secondarySideBar.defaultVisibility'
:
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'bpasero';
comment:'This is used to know if secondary side bar is visible or not';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
(
'workbench.secondarySideBar.defaultVisibility'
,
{
:
this
.
getValueToReport
(
,
)
,
}
)
;
return
;
case
:
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'sandy081';
comment:'This is used to know if extensions signature verification is enabled or not';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
(
'extensions.verifySignature'
,
{
:
this
.
getValueToReport
(
,
)
,
}
)
;
return
;
case
'window.newWindowProfile'
:
{
const
=
this
.
getValueToReport
(
,
)
;
const
=
===
null
?
'null'
:
===
this
.
.
.
?
'default'
:
'custom'
;
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'sandy081';
comment:'This is used to know the new window profile that is being used';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'if the profile is default or not'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
(
'window.newWindowProfile'
,
{
,
}
)
;
return
;
}
case
:
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'sandy081';
comment:'This is used to know if extensions are getting auto restarted or not';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
(
'extensions.autoRestart'
,
{
:
this
.
getValueToReport
(
,
)
,
}
)
;
return
;
case
.
:
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'meganrogge';
comment:'This is used to know the output location for chat terminals';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
publicLog2<UpdatedSettingEvent,{
owner:'meganrogge';
comment:'This is used to know if terminal suggestions are enabled or not';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>
(
'terminal.integrated.suggest.enabled'
,
{
:
this
.
getValueToReport
(
,
)
,
}
)
;
return
;
case
.
:
this
.
.
publicLog2<UpdatedSettingEvent,{
owner:'isidorn';
comment:'This is used to know if agent sandbox is enabled or not';
settingValue:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'value of the setting'};
source:{ classification:'SystemMetaData'; purpose:'FeatureInsight'; comment:'source of the setting'};}>