Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/plugin-ext
common/plugin-api-rpc
ScmExt
Interface ScmExt
interface
ScmExt
{
$executeResourceCommand
(
sourceControlHandle
:
number
,
groupHandle
:
number
,
resourceHandle
:
number
,
)
:
Promise
<
void
>
;
$onInputBoxValueChange
(
sourceControlHandle
:
number
,
message
:
string
,
)
:
Promise
<
void
>
;
$provideOriginalResource
(
sourceControlHandle
:
number
,
uri
:
string
,
token
:
CancellationToken
,
)
:
Promise
<
undefined
|
UriComponents
>
;
$setSelectedSourceControl
(
selectedSourceControlHandle
:
undefined
|
number
,
)
:
Promise
<
void
>
;
$validateInput
(
sourceControlHandle
:
number
,
value
:
string
,
cursorPosition
:
number
,
)
:
Promise
<
undefined
|
[
string
,
number
]
>
;
createSourceControl
(
plugin
:
Plugin
,
id
:
string
,
label
:
string
,
rootUri
?:
Uri
,
)
:
SourceControl
;
getLastInputBox
(
plugin
:
Plugin
)
:
undefined
|
SourceControlInputBox
;
}
Implemented by
ScmExtImpl
Index
Methods
$execute
Resource
Command
$on
Input
Box
Value
Change
$provide
Original
Resource
$set
Selected
Source
Control
$validate
Input
create
Source
Control
get
Last
Input
Box
Methods
$execute
Resource
Command
$executeResourceCommand
(
sourceControlHandle
:
number
,
groupHandle
:
number
,
resourceHandle
:
number
,
)
:
Promise
<
void
>
Parameters
sourceControlHandle
:
number
groupHandle
:
number
resourceHandle
:
number
Returns
Promise
<
void
>
$on
Input
Box
Value
Change
$onInputBoxValueChange
(
sourceControlHandle
:
number
,
message
:
string
,
)
:
Promise
<
void
>
Parameters
sourceControlHandle
:
number
message
:
string
Returns
Promise
<
void
>
$provide
Original
Resource
$provideOriginalResource
(
sourceControlHandle
:
number
,
uri
:
string
,
token
:
CancellationToken
,
)
:
Promise
<
undefined
|
UriComponents
>
Parameters
sourceControlHandle
:
number
uri
:
string
token
:
CancellationToken
Returns
Promise
<
undefined
|
UriComponents
>
$set
Selected
Source
Control
$setSelectedSourceControl
(
selectedSourceControlHandle
:
undefined
|
number
,
)
:
Promise
<
void
>
Parameters
selectedSourceControlHandle
:
undefined
|
number
Returns
Promise
<
void
>
$validate
Input
$validateInput
(
sourceControlHandle
:
number
,
value
:
string
,
cursorPosition
:
number
,
)
:
Promise
<
undefined
|
[
string
,
number
]
>
Parameters
sourceControlHandle
:
number
value
:
string
cursorPosition
:
number
Returns
Promise
<
undefined
|
[
string
,
number
]
>
create
Source
Control
createSourceControl
(
plugin
:
Plugin
,
id
:
string
,
label
:
string
,
rootUri
?:
Uri
,
)
:
SourceControl
Parameters
plugin
:
Plugin
id
:
string
label
:
string
Optional
rootUri
:
Uri
Returns
SourceControl
get
Last
Input
Box
getLastInputBox
(
plugin
:
Plugin
)
:
undefined
|
SourceControlInputBox
Parameters
plugin
:
Plugin
Returns
undefined
|
SourceControlInputBox
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
$execute
Resource
Command
$on
Input
Box
Value
Change
$provide
Original
Resource
$set
Selected
Source
Control
$validate
Input
create
Source
Control
get
Last
Input
Box
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...