Search
Preparing search index...
The search index is not available
Theia TypeDoc
Options
All
Public
Public/Protected
All
Inherited
Menu
Theia TypeDoc
scm
ScmTreeModel
Class ScmTreeModel
Abstract
Hierarchy
TreeModelImpl
ScmTreeModel
ScmGroupsTreeModel
Index
Constructors
constructor
Properties
_language
Id
_view
Mode
context
Keys
props
provider
Accessors
groups
language
Id
root
Uri
view
Mode
Methods
build
File
Change
Tree
can
Tab
To
Widget
collect
Resources
compare
Nodes
create
Tree
do
Compare
Nodes
exec
In
Node
Context
find
Group
get
Resource
From
Node
get
Resource
Group
From
Node
get
Resources
From
Folder
Node
get
Root
get
Selection
Args
restore
State
reveal
Node
store
State
to
File
Change
Folder
Node
to
File
Change
Node
to
Group
Node
Constructors
constructor
new
Scm
Tree
Model
(
)
:
ScmTreeModel
Returns
ScmTreeModel
Properties
Private
_language
Id
_language
Id
:
undefined
|
string
Protected
_view
Mode
_view
Mode
:
"tree"
|
"list"
= 'list'
Protected
Readonly
context
Keys
context
Keys
:
ScmContextKeyService
Protected
Readonly
props
props
:
ScmTreeModelProps
Protected
provider
provider
:
undefined
|
ScmProvider
Accessors
Abstract
groups
get
groups
(
)
:
ScmResourceGroup
[]
Returns
ScmResourceGroup
[]
language
Id
get
languageId
(
)
:
undefined
|
string
Returns
undefined
|
string
Abstract
root
Uri
get
rootUri
(
)
:
undefined
|
string
Returns
undefined
|
string
view
Mode
get
viewMode
(
)
:
"tree"
|
"list"
set
viewMode
(
id
:
"tree"
|
"list"
)
:
void
Returns
"tree"
|
"list"
Parameters
id:
"tree"
|
"list"
Returns
void
Methods
Protected
build
File
Change
Tree
build
File
Change
Tree
(
sortedResources
:
{
pathParts
:
string
[]
;
resource
:
ScmResource
}
[]
, start
:
number
, end
:
number
, level
:
number
, parent
:
ScmFileChangeGroupNode
|
ScmFileChangeFolderNode
)
:
(
ScmFileChangeFolderNode
|
ScmFileChangeNode
)
[]
Parameters
sortedResources:
{
pathParts
:
string
[]
;
resource
:
ScmResource
}
[]
start:
number
end:
number
level:
number
parent:
ScmFileChangeGroupNode
|
ScmFileChangeFolderNode
Returns
(
ScmFileChangeFolderNode
|
ScmFileChangeNode
)
[]
Abstract
can
Tab
To
Widget
can
Tab
To
Widget
(
)
:
boolean
Returns
boolean
Protected
collect
Resources
collect
Resources
(
resources
:
ScmResource
[]
, node
:
TreeNode
, group
:
ScmResourceGroup
)
:
void
Parameters
resources:
ScmResource
[]
node:
TreeNode
group:
ScmResourceGroup
Returns
void
Protected
compare
Nodes
compare
Nodes
(
a
:
ScmFileChangeFolderNode
|
ScmFileChangeNode
, b
:
ScmFileChangeFolderNode
|
ScmFileChangeNode
)
:
number
Parameters
a:
ScmFileChangeFolderNode
|
ScmFileChangeNode
b:
ScmFileChangeFolderNode
|
ScmFileChangeNode
Returns
number
Protected
create
Tree
create
Tree
(
)
:
ScmFileChangeRootNode
Returns
ScmFileChangeRootNode
Protected
do
Compare
Nodes
do
Compare
Nodes
(
a
:
ScmFileChangeFolderNode
|
ScmFileChangeNode
, b
:
ScmFileChangeFolderNode
|
ScmFileChangeNode
)
:
number
Parameters
a:
ScmFileChangeFolderNode
|
ScmFileChangeNode
b:
ScmFileChangeFolderNode
|
ScmFileChangeNode
Returns
number
exec
In
Node
Context
exec
In
Node
Context
(
node
:
TreeNode
, callback
:
(
(
)
=>
void
)
)
:
void
Parameters
node:
TreeNode
callback:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
void
find
Group
find
Group
(
groupId
:
string
)
:
undefined
|
ScmResourceGroup
Parameters
groupId:
string
Returns
undefined
|
ScmResourceGroup
get
Resource
From
Node
get
Resource
From
Node
(
node
:
ScmFileChangeNode
)
:
undefined
|
ScmResource
Parameters
node:
ScmFileChangeNode
Returns
undefined
|
ScmResource
get
Resource
Group
From
Node
get
Resource
Group
From
Node
(
node
:
ScmFileChangeGroupNode
)
:
undefined
|
ScmResourceGroup
Parameters
node:
ScmFileChangeGroupNode
Returns
undefined
|
ScmResourceGroup
get
Resources
From
Folder
Node
get
Resources
From
Folder
Node
(
node
:
ScmFileChangeFolderNode
)
:
ScmResource
[]
Parameters
node:
ScmFileChangeFolderNode
Returns
ScmResource
[]
Protected
get
Root
get
Root
(
node
:
ScmFileChangeGroupNode
|
ScmFileChangeFolderNode
)
:
ScmFileChangeRootNode
Parameters
node:
ScmFileChangeGroupNode
|
ScmFileChangeFolderNode
Returns
ScmFileChangeRootNode
get
Selection
Args
get
Selection
Args
(
selectedNodes
:
readonly
SelectableTreeNode
[]
)
:
ScmResource
[]
Parameters
selectedNodes:
readonly
SelectableTreeNode
[]
Returns
ScmResource
[]
restore
State
restore
State
(
oldState
:
any
)
:
void
Parameters
oldState:
any
Returns
void
Protected
reveal
Node
reveal
Node
(
node
:
TreeNode
)
:
Promise
<
void
>
Parameters
node:
TreeNode
Returns
Promise
<
void
>
store
State
store
State
(
)
:
any
Returns
any
Protected
to
File
Change
Folder
Node
to
File
Change
Folder
Node
(
resources
:
{
pathParts
:
string
[]
;
resource
:
ScmResource
}
[]
, start
:
number
, end
:
number
, level
:
number
, nodeRelativePath
:
string
, parent
:
ScmFileChangeGroupNode
|
ScmFileChangeFolderNode
)
:
ScmFileChangeFolderNode
Parameters
resources:
{
pathParts
:
string
[]
;
resource
:
ScmResource
}
[]
start:
number
end:
number
level:
number
nodeRelativePath:
string
parent:
ScmFileChangeGroupNode
|
ScmFileChangeFolderNode
Returns
ScmFileChangeFolderNode
Protected
to
File
Change
Node
to
File
Change
Node
(
resource
:
ScmResource
, parent
:
CompositeTreeNode
)
:
ScmFileChangeNode
Parameters
resource:
ScmResource
parent:
CompositeTreeNode
Returns
ScmFileChangeNode
Protected
to
Group
Node
to
Group
Node
(
group
:
ScmResourceGroup
, parent
:
CompositeTreeNode
)
:
ScmFileChangeGroupNode
Parameters
group:
ScmResourceGroup
parent:
CompositeTreeNode
Returns
ScmFileChangeGroupNode
Modules
bulk-
edit
callhierarchy
console
core
debug
editor
editor-
preview
electron
external-
terminal
file-
search
filesystem
getting-
started
git
keymaps
markers
memory-
inspector
messages
metrics
mini-
browser
monaco
navigator
outline-
view
output
plugin
plugin-
dev
plugin-
ext
plugin-
ext-
vscode
plugin-
metrics
preferences
preview
process
property-
view
scm
Content
Lines
SCM_
COMMANDS
Scm
Amend
Component
Scm
Colors
Scm
Commit
Widget
Scm
Element
Scm
File
Change
Folder
Node
Scm
File
Change
Group
Node
Scm
File
Change
Node
Scm
Inline
Action
Scm
Inline
Actions
Scm
Resource
Component
Scm
Resource
Folder
Element
Scm
Resource
Group
Component
Scm
Tree
Widget
scm-
extra
search-
in-
workspace
secondary-
window
task
terminal
timeline
toolbar
typehierarchy
userstorage
variable-
resolver
vsx-
registry
workspace
Scm
Tree
Model
constructor
_language
Id
_view
Mode
context
Keys
props
provider
groups
language
Id
root
Uri
view
Mode
build
File
Change
Tree
can
Tab
To
Widget
collect
Resources
compare
Nodes
create
Tree
do
Compare
Nodes
exec
In
Node
Context
find
Group
get
Resource
From
Node
get
Resource
Group
From
Node
get
Resources
From
Folder
Node
get
Root
get
Selection
Args
restore
State
reveal
Node
store
State
to
File
Change
Folder
Node
to
File
Change
Node
to
Group
Node