Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
"The selected source control provider does not have any source control history items."
)
,
:
.
.
isEqualTo
(
0
)
}
)
;
.
registerViews
(
[
{
:
REPOSITORIES_VIEW_PANE_ID
,
,
:
localize2
(
'scmRepositories'
,
"Repositories"
)
,
:
localize
(
'source control repositories'
,
"Source Control Repositories"
)
,
:
new
SyncDescriptor
(
)
,
:
true
,
:
true
,
:
true
,
:
20
,
:
0
,
:
.
and
(
.
has
(
'scm.providerCount'
)
,
.
notEquals
(
'scm.providerCount'
,
0
)
)
,
// readonly when = ContextKeyExpr.or(ContextKeyExpr.equals('config.scm.alwaysShowProviders', true), ContextKeyExpr.and(ContextKeyExpr.notEquals('scm.providerCount', 0), ContextKeyExpr.notEquals('scm.providerCount', 1)));
:
}
]
,
)
;
.
registerViews
(
[
{
:
VIEW_PANE_ID
,
,
:
localize2
(
'scmChanges'
,
'Changes'
)
,
:
,
:
new
SyncDescriptor
(
)
,
:
true
,
:
true
,
:
40
,
:
1
,
:
,
:
{
:
.
,
:
localize
(
{
:
'miViewSCM'
,
:
[
'&& denotes a mnemonic'
]
}
,
"Source &&Control"
)
,
:
{
:
0
,
:
{
:
.
|
.
|
.
}
,
:
{
:
.
|
.
|
.
}
,
:
{
:
.
|
.
|
.
}
,
}
,
:
2
,
}
}
]
,
)
;
.
registerViews
(
[
{
:
HISTORY_VIEW_PANE_ID
,
,
:
localize2
(
'scmGraph'
,
"Graph"
)
,
:
localize
(
'source control graph'
,
"Source Control Graph"
)
,
:
new
SyncDescriptor
(
)
,
:
true
,
:
true
,
:
40
,
:
2
,
:
.
and
(
.
has
(
'scm.historyProviderCount'
)
,
.
notEquals
(
'scm.historyProviderCount'
,
0
)
,
)
,
:
}
]
,
)
;
.
as<IWorkbenchContributionsRegistry>
(
.
)
.
registerWorkbenchContribution
(
,
.
)
;
.
as<IWorkbenchContributionsRegistry>
(
.
)
.
registerWorkbenchContribution
(
,
.
)
;
registerWorkbenchContribution2
(
.
ID
,
,
.
)
;
registerWorkbenchContribution2
(
.
ID
,
,
.
)
;
.
as<IConfigurationRegistry>
(
.
)
.
registerConfiguration
(
{
:
'scm'
,
:
5
,
:
localize
(
'scmConfigurationTitle'
,
"Source Control"
)
,
:
'object'
,
:
.
RESOURCE
,
:
{
'scm.diffDecorations'
:
{
:
'string'
,
enum
:
[
'all'
,
'gutter'
,
'overview'
,
'minimap'
,
'none'
]
,
:
[
localize
(
'scm.diffDecorations.all'
,
"Show the diff decorations in all available locations."
)
,
localize
(
'scm.diffDecorations.gutter'
,
"Show the diff decorations only in the editor gutter."
)
,
localize
(
'scm.diffDecorations.overviewRuler'
,
"Show the diff decorations only in the overview ruler."
)
,
localize
(
'scm.diffDecorations.minimap'
,
"Show the diff decorations only in the minimap."
)
,
localize
(
'scm.diffDecorations.none'
,
"Do not show the diff decorations."
)
]
,
default
:
'all'
,
:
localize
(
'diffDecorations'
,
"Controls diff decorations in the editor."
)
}
,
'scm.diffDecorationsGutterWidth'
:
{
:
'number'
,
enum
:
[
1
,
2
,
3
,
4
,
5
]
,
default
:
3
,
:
localize
(
'diffGutterWidth'
,
"Controls the width(px) of diff decorations in gutter (added & modified)."
)
}
,
'scm.diffDecorationsGutterVisibility'
:
{
:
'string'
,
enum
:
[
'always'
,
'hover'
]
,
:
[
localize
(
'scm.diffDecorationsGutterVisibility.always'
,
"Show the diff decorator in the gutter at all times."
)
,
localize
(
'scm.diffDecorationsGutterVisibility.hover'
,
"Show the diff decorator in the gutter only on hover."
)
]
,
:
localize
(
'scm.diffDecorationsGutterVisibility'
,
"Controls the visibility of the Source Control diff decorator in the gutter."
)
,
default
:
'always'
}
,
'scm.diffDecorationsGutterAction'
:
{
:
'string'
,
enum
:
[
'diff'
,
'none'
]
,
:
[
localize
(
'scm.diffDecorationsGutterAction.diff'
,
"Show the inline diff Peek view on click."
)
,
localize
(
'scm.diffDecorationsGutterAction.none'
,
"Do nothing."
)
]
,
:
localize
(
'scm.diffDecorationsGutterAction'
,
"Controls the behavior of Source Control diff gutter decorations."
)
,
default
:
'diff'
}
,
'scm.diffDecorationsGutterPattern'
:
{
:
'object'
,
:
localize
(
'diffGutterPattern'
,
"Controls whether a pattern is used for the diff decorations in gutter."
)
,
:
false
,
:
{
'added'
:
{
:
'boolean'
,
:
localize
(
'diffGutterPatternAdded'
,
"Use pattern for the diff decorations in gutter for added lines."
)
,
}
,
'modified'
:
{
:
'boolean'
,
:
localize
(
'diffGutterPatternModifed'
,
"Use pattern for the diff decorations in gutter for modified lines."
)
,
}
,
}
,
default
:
{
'added'
:
false
,
'modified'
:
true
}
}
,
'scm.diffDecorationsIgnoreTrimWhitespace'
:
{
:
'string'
,
enum
:
[
'true'
,
'false'
,
'inherit'
]
,
:
[
localize
(
'scm.diffDecorationsIgnoreTrimWhitespace.true'
,
"Ignore leading and trailing whitespace."
)
,
localize
(
'scm.diffDecorationsIgnoreTrimWhitespace.false'
,
"Do not ignore leading and trailing whitespace."
)
,
localize
(
'scm.diffDecorationsIgnoreTrimWhitespace.inherit'
,
"Inherit from `diffEditor.ignoreTrimWhitespace`."
)
]
,
:
localize
(
'diffDecorationsIgnoreTrimWhitespace'
,
"Controls whether leading and trailing whitespace is ignored in Source Control diff gutter decorations."
)
,
default
:
'false'
}
,
'scm.alwaysShowActions'
:
{
:
'boolean'
,
:
localize
(
'alwaysShowActions'
,
"Controls whether inline actions are always visible in the Source Control view."
)
,
default
:
false
}
,
'scm.countBadge'
:
{
:
'string'
,
enum
:
[
'all'
,
'focused'
,
'off'
]
,
:
[
localize
(
'scm.countBadge.all'
,
"Show the sum of all Source Control Provider count badges."
)
,
localize
(
'scm.countBadge.focused'
,
"Show the count badge of the focused Source Control Provider."
)
,
localize
(
'scm.countBadge.off'
,
"Disable the Source Control count badge."
)
]
,
:
localize
(
'scm.countBadge'
,
"Controls the count badge on the Source Control icon on the Activity Bar."
)
,
default
:
'all'
}
,
'scm.providerCountBadge'
:
{
:
'string'
,
enum
:
[
'hidden'
,
'auto'
,
'visible'
]
,
:
[
localize
(
'scm.providerCountBadge.hidden'
,
"Hide Source Control Provider count badges."
)
,
localize
(
'scm.providerCountBadge.auto'
,
"Only show count badge for Source Control Provider when non-zero."
)
,
localize
(
'scm.providerCountBadge.visible'
,
"Show Source Control Provider count badges."
)
]
,
:
localize
(
'scm.providerCountBadge'
,
"Controls the count badges on Source Control Provider headers. These headers appear in the Source Control view when there is more than one provider or when the {0} setting is enabled, and in the Source Control Repositories view."
,
'\`#scm.alwaysShowRepositories#\`'
)
,
default
:
'hidden'
}
,
'scm.defaultViewMode'
:
{
:
'string'
,
enum
:
[
'tree'
,
'list'
]
,
:
[
localize
(
'scm.defaultViewMode.tree'
,
"Show the repository changes as a tree."
)
,
localize
(
'scm.defaultViewMode.list'
,
"Show the repository changes as a list."
)
]
,
:
localize
(
'scm.defaultViewMode'
,
"Controls the default Source Control repository view mode."
)
,
default
:
'list'
}
,
'scm.defaultViewSortKey'
:
{
:
'string'
,
enum
:
[
'name'
,
'path'
,
'status'
]
,
:
[
localize
(
'scm.defaultViewSortKey.name'
,
"Sort the repository changes by file name."
)
,
localize
(
'scm.defaultViewSortKey.path'
,
"Sort the repository changes by path."
)
,
localize
(
'scm.defaultViewSortKey.status'
,
"Sort the repository changes by Source Control status."
)
]
,
:
localize
(
'scm.defaultViewSortKey'
,
"Controls the default Source Control repository changes sort order when viewed as a list."
)
,
default
:
'path'
}
,
'scm.autoReveal'
:
{
:
'boolean'
,
:
localize
(
'autoReveal'
,
"Controls whether the Source Control view should automatically reveal and select files when opening them."
)
,
default
:
true
}
,
'scm.inputFontFamily'
:
{
:
'string'
,
:
localize
(
'inputFontFamily'
,
"Controls the font for the input message. Use `default` for the workbench user interface font family, `editor` for the `#editor.fontFamily#`'s value, or a custom font family."
)
,
default
:
'default'
}
,
'scm.inputFontSize'
:
{
:
'number'
,
:
localize
(
'inputFontSize'
,
"Controls the font size for the input message in pixels."
)
,
default
:
13
}
,
'scm.inputMaxLineCount'
:
{
:
'number'
,
:
localize
(
'inputMaxLines'
,
"Controls the maximum number of lines that the input will auto-grow to."
)
,
:
1
,
:
50
,
default
:
10
}
,
'scm.inputMinLineCount'
:
{
:
'number'
,
:
localize
(
'inputMinLines'
,
"Controls the minimum number of lines that the input will auto-grow from."
)
,
:
1
,
:
50
,
default
:
1
}
,
'scm.alwaysShowRepositories'
:
{
:
'boolean'
,
:
localize
(
'alwaysShowRepository'
,
"Controls whether repositories should always be visible in the Source Control view."
)
,
default
:
false
}
,
'scm.repositories.sortOrder'
:
{
:
'string'
,
enum
:
[
'discovery time'
,
'name'
,
'path'
]
,
:
[
localize
(
'scm.repositoriesSortOrder.discoveryTime'
,
"Repositories in the Source Control Repositories view are sorted by discovery time. Repositories in the Source Control view are sorted in the order that they were selected."
)
,
localize
(
'scm.repositoriesSortOrder.name'
,
"Repositories in the Source Control Repositories and Source Control views are sorted by repository name."
)
,
localize
(
'scm.repositoriesSortOrder.path'
,
"Repositories in the Source Control Repositories and Source Control views are sorted by repository path."
)
]
,
:
localize
(
'repositoriesSortOrder'
,
"Controls the sort order of the repositories in the source control repositories view."
)
,
default
:
'discovery time'
}
,
'scm.repositories.visible'
:
{
:
'number'
,
:
localize
(
'providersVisible'
,
"Controls how many repositories are visible in the Source Control Repositories section. Set to 0, to be able to manually resize the view."
)
,
default
:
10
}
,
'scm.repositories.selectionMode'
:
{
:
'string'
,
enum
:
[
'multiple'
,
'single'
]
,
:
[
localize
(
'scm.repositories.selectionMode.multiple'
,
"Multiple repositories can be selected at the same time."
)
,
localize
(
'scm.repositories.selectionMode.single'
,
"Only one repository can be selected at a time."
)
]
,
:
localize
(
'scm.repositories.selectionMode'
,
"Controls the selection mode of the repositories in the Source Control Repositories view."
)
,
default
:
'multiple'
}
,
'scm.repositories.explorer'
:
{
:
'boolean'
,
:
localize
(
'scm.repositories.explorer'
,
"Controls whether to show repository artifacts in the Source Control Repositories view. This feature is experimental and only works when {0} is set to `{1}`."
,
'\`#scm.repositories.selectionMode#\`'
,
'single'
)
,
default
:
false
,
:
[
'experimental'
]
}
,
'scm.showActionButton'
:
{
:
'boolean'
,
:
localize
(
'showActionButton'
,
"Controls whether an action button can be shown in the Source Control view."
)
,
default
:
true
}
,
'scm.showInputActionButton'
:
{
:
'boolean'
,
:
localize
(
'showInputActionButton'
,
"Controls whether an action button can be shown in the Source Control input."
)
,
default
:
true
}
,
'scm.workingSets.enabled'
:
{
:
'boolean'
,
:
localize
(
'scm.workingSets.enabled'
,
"Controls whether to store editor working sets when switching between source control history item groups."
)
,
default
:
false
}
,
'scm.workingSets.default'
:
{
:
'string'
,
enum
:
[
'empty'
,
'current'
]
,
:
[
localize
(
'scm.workingSets.default.empty'
,
"Use an empty working set when switching to a source control history item group that does not have a working set."
)
,
localize
(
'scm.workingSets.default.current'
,
"Use the current working set when switching to a source control history item group that does not have a working set."
)
]
,
:
localize
(
'scm.workingSets.default'
,
"Controls the default working set to use when switching to a source control history item group that does not have a working set."
)
,
default
:
'current'
}
,
'scm.compactFolders'
:
{
:
'boolean'
,
:
localize
(
'scm.compactFolders'
,
"Controls whether the Source Control view should render folders in a compact form. In such a form, single child folders will be compressed in a combined tree element."
)
,
default
:
true
}
,
'scm.graph.pageOnScroll'
:
{
:
'boolean'
,
:
localize
(
'scm.graph.pageOnScroll'
,
"Controls whether the Source Control Graph view will load the next page of items when you scroll to the end of the list."
)
,
default
:
true
}
,
'scm.graph.pageSize'
:
{
:
'number'
,
:
localize
(
'scm.graph.pageSize'
,
"The number of items to show in the Source Control Graph view by default and when loading more items."
)
,
:
1
,
:
1000
,
default
:
50
}
,
'scm.graph.badges'
:
{
:
'string'
,
enum
:
[
'all'
,
'filter'
]
,
:
[
localize
(
'scm.graph.badges.all'
,
"Show badges of all history item groups in the Source Control Graph view."
)
,
localize
(
'scm.graph.badges.filter'
,
"Show only the badges of history item groups used as a filter in the Source Control Graph view."
)
]
,
:
localize
(
'scm.graph.badges'
,
"Controls which badges are shown in the Source Control Graph view. The badges are shown on the right side of the graph indicating the names of history item groups."
)
,
default
:
'filter'
}
,
'scm.graph.showIncomingChanges'
:
{
:
'boolean'
,
:
localize
(
'scm.graph.showIncomingChanges'
,
"Controls whether to show incoming changes in the Source Control Graph view."
)
,
default
:
true
}
,
'scm.graph.showOutgoingChanges'
:
{
:
'boolean'
,
:
localize
(
'scm.graph.showOutgoingChanges'
,
"Controls whether to show outgoing changes in the Source Control Graph view."
)
,
default
:
true
}
}
}
)
;
.
registerCommandAndKeybindingRule
(
{
:
'scm.acceptInput'
,
:
{
:
localize
(
'scm accept'
,
"Source Control: Accept Input"
)
,
:
[
]
}
,
:
.
,
:
.
has
(
'scmRepository'
)
,
:
.
|
.
,
handler
:
=>
{
const
=
.
get
(
)
;
const
=
.
getContext
(
getActiveElement
(
)
)
;
const
=
.
getValue<string|undefined>
(
'scmRepository'
)
;
if
(
!
)
{
return
Promise
.
resolve
(
null
)
;
}
const
=
.
get
(
)
;
const
=
.
getRepository
(
)
;
if
(
!
?.
.
)
{
return
Promise
.
resolve
(
null
)
;
}
const
=
.
.
.
;
const
=
.
.
.
;
const
=
.
get
(
)
;
return
.
executeCommand
(
,
...
(
||
[
]
)
)
;
}
}
)
;
.
registerCommandAndKeybindingRule
(
{
:
'scm.clearValidation'
,
:
.
,
:
.
and
(
.
has
(
'scmRepository'
)
,
.
)
,
:
.
,
handler
:
async
(
)
=>
{
const
=
.
get
(
)
;
.
.
get
(
)
?.
.
.
clearValidation
(
)
;
}
}
)
;
.
registerCommandAndKeybindingRule
(
{
:
'scm.clearInput'
,
:
.
,
:
.
and
(
.
has
(
'scmRepository'
)
,
.
.
toNegated
(
)
,
.
.
toNegated
(
)
,
.
.
toNegated
(
)
,
.
.
toNegated
(
)
)
,
:
.
,
handler
:
async
(
)
=>
{
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
getContext
(
getActiveElement
(
)
)
;
const
=
.
getValue<string|undefined>
(
'scmRepository'
)
;
const
=
?
.
getRepository
(
)
:
undefined
;
?.
.
setValue
(
''
,
true
)
;
}
}
)
;
const
=
{
:
{
:
localize
(
'scm view next commit'
,
"Source Control: View Next Commit"
)
,
:
[
]
}
,
:
.
,
handler
:
(
:
)
=>
{
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
getContext
(
getActiveElement
(
)
)
;
const
=
.
getValue<string|undefined>
(
'scmRepository'
)
;
const
=
?
.
getRepository
(
)
:
undefined
;
?.
.
showNextHistoryValue
(
)
;
}
}
;
const
=
{
:
{
:
localize
(
'scm view previous commit'
,
"Source Control: View Previous Commit"
)
,
:
[
]
}
,
:
.
,
handler
:
(
:
)
=>
{
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
.
getContext
(
getActiveElement
(
)
)
;
const
=
.
getValue<string|undefined>
(
'scmRepository'
)
;
const
=
?
.
getRepository
(
)
:
undefined
;
?.
.
showPreviousHistoryValue
(
)
;
}
}
;
.
registerCommandAndKeybindingRule
(
{
...
,
:
'scm.viewNextCommit'
,
:
.
and
(
.
has
(
'scmRepository'
)
,
.
has
(
'scmInputIsInLastPosition'
)
,
.
.
toNegated
(
)
)
,
:
.
}
)
;
.
registerCommandAndKeybindingRule
(
{
...
,
:
'scm.viewPreviousCommit'
,
:
.
and
(
.
has
(
'scmRepository'
)
,
.
has
(
'scmInputIsInFirstPosition'
)
,
.
.
toNegated
(
)
)
,
:
.
}
)
;
.
registerCommandAndKeybindingRule
(
{
...
,
:
'scm.forceViewNextCommit'
,
:
.
has
(
'scmRepository'
)
,
:
.
|
.
}
)
;
.
registerCommandAndKeybindingRule
(
{
...
,
:
'scm.forceViewPreviousCommit'
,
:
.
has
(
'scmRepository'
)
,
:
.
|
.
}
)
;
.
registerCommand
(
'scm.openInIntegratedTerminal'
,
async
(
,
...
:
[
]
)
=>
{
if
(
!
||
.
===
0
)
{
return
;
}
const
=
.
get
(
)
;
const
=
.
get
(
)
;
let
=
.
===
1
?
[
0
]
:
undefined
;
if
(
!
)
{
const
=
.
;
const
=
?.
getHTMLElement
(
)
;
if
(
instanceof
WorkbenchList
&&
&&
isActiveElement
(
)
)
{
const
[
]
=
.
getFocus
(
)
;
const
=
.
element
(
)
;
// Source Control Repositories
if
(
isSCMRepository
(
)
)
{
=
.
;
}
}
}
if
(
!
?.
)
{
return
;
}
await
.
executeCommand
(
'openInIntegratedTerminal'
,
.
)
;
}
)
;
.
registerCommand
(
'scm.openInTerminal'
,
async
(
,
:
)
=>
{
if
(
!
||
!
.
)
{
return
;
}
const
=
.
get
(
)
;
await
.
executeCommand
(
'openInTerminal'
,
.
)
;
}
)
;
.
registerCommand
(
'scm.setActiveProvider'
,
async
(
)
=>
{
const
=
.
get
(
)
;
const
=
.
get
(
)
;
const
=
localize
(
'scmActiveRepositoryPlaceHolder'
,
"Select the active repository, type to filter all repositories"
)
;
const
=
localize
(
'scmActiveRepositoryAutoDescription'
,
"The active repository is updated based on active editor"