Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/plugin-ext
plugin/custom-editors
CustomEditorsExtImpl
Class CustomEditorsExtImpl
Implements
CustomEditorsExt
Index
Constructors
constructor
Methods
$create
Custom
Document
$dispose
Custom
Document
$dispose
Edits
$on
Move
Custom
Editor
$redo
$resolve
Webview
Editor
$revert
$save
$save
As
$undo
get
Custom
Document
Entry
register
Custom
Editor
Provider
Constructors
constructor
new
CustomEditorsExtImpl
(
rpc
:
RPCProtocol
,
documentExt
:
DocumentsExtImpl
,
webviewExt
:
WebviewsExtImpl
,
)
:
CustomEditorsExtImpl
Parameters
rpc
:
RPCProtocol
documentExt
:
DocumentsExtImpl
webviewExt
:
WebviewsExtImpl
Returns
CustomEditorsExtImpl
Methods
$create
Custom
Document
$createCustomDocument
(
resource
:
UriComponents
,
viewType
:
string
,
openContext
:
CustomDocumentOpenContext
,
cancellation
:
CancellationToken
,
)
:
Promise
<
{
editable
:
boolean
}
>
Parameters
resource
:
UriComponents
viewType
:
string
openContext
:
CustomDocumentOpenContext
cancellation
:
CancellationToken
Returns
Promise
<
{
editable
:
boolean
}
>
$dispose
Custom
Document
$disposeCustomDocument
(
resource
:
UriComponents
,
viewType
:
string
)
:
Promise
<
void
>
Parameters
resource
:
UriComponents
viewType
:
string
Returns
Promise
<
void
>
$dispose
Edits
$disposeEdits
(
resourceComponents
:
UriComponents
,
viewType
:
string
,
editIds
:
number
[]
,
)
:
void
Parameters
resourceComponents
:
UriComponents
viewType
:
string
editIds
:
number
[]
Returns
void
$on
Move
Custom
Editor
$onMoveCustomEditor
(
handle
:
string
,
newResourceComponents
:
UriComponents
,
viewType
:
string
,
)
:
Promise
<
void
>
$backup(resource: UriComponents, viewType: string, cancellation: CancellationToken): Promise
;
Parameters
handle
:
string
newResourceComponents
:
UriComponents
viewType
:
string
Returns
Promise
<
void
>
$redo
$redo
(
resourceComponents
:
UriComponents
,
viewType
:
string
,
editId
:
number
,
isDirty
:
boolean
,
)
:
Promise
<
void
>
Parameters
resourceComponents
:
UriComponents
viewType
:
string
editId
:
number
isDirty
:
boolean
Returns
Promise
<
void
>
$resolve
Webview
Editor
$resolveWebviewEditor
(
resource
:
UriComponents
,
handler
:
string
,
viewType
:
string
,
title
:
string
,
position
:
number
,
options
:
WebviewPanelOptions
,
cancellation
:
CancellationToken
,
)
:
Promise
<
void
>
Parameters
resource
:
UriComponents
handler
:
string
viewType
:
string
title
:
string
position
:
number
options
:
WebviewPanelOptions
cancellation
:
CancellationToken
Returns
Promise
<
void
>
$revert
$revert
(
resourceComponents
:
UriComponents
,
viewType
:
string
,
cancellation
:
CancellationToken
,
)
:
Promise
<
void
>
Parameters
resourceComponents
:
UriComponents
viewType
:
string
cancellation
:
CancellationToken
Returns
Promise
<
void
>
$save
$save
(
resourceComponents
:
UriComponents
,
viewType
:
string
,
cancellation
:
CancellationToken
,
)
:
Promise
<
void
>
Parameters
resourceComponents
:
UriComponents
viewType
:
string
cancellation
:
CancellationToken
Returns
Promise
<
void
>
$save
As
$saveAs
(
resourceComponents
:
UriComponents
,
viewType
:
string
,
targetResource
:
UriComponents
,
cancellation
:
CancellationToken
,
)
:
Promise
<
void
>
Parameters
resourceComponents
:
UriComponents
viewType
:
string
targetResource
:
UriComponents
cancellation
:
CancellationToken
Returns
Promise
<
void
>
$undo
$undo
(
resourceComponents
:
UriComponents
,
viewType
:
string
,
editId
:
number
,
isDirty
:
boolean
,
)
:
Promise
<
void
>
Parameters
resourceComponents
:
UriComponents
viewType
:
string
editId
:
number
isDirty
:
boolean
Returns
Promise
<
void
>
get
Custom
Document
Entry
getCustomDocumentEntry
(
viewType
:
string
,
resource
:
UriComponents
,
)
:
CustomDocumentStoreEntry
Parameters
viewType
:
string
resource
:
UriComponents
Returns
CustomDocumentStoreEntry
register
Custom
Editor
Provider
registerCustomEditorProvider
(
viewType
:
string
,
provider
:
|
CustomReadonlyEditorProvider
<
CustomDocument
>
|
CustomTextEditorProvider
,
options
:
{
supportsMultipleEditorsPerDocument
?:
boolean
;
webviewOptions
?:
WebviewPanelOptions
;
}
,
plugin
:
Plugin
,
)
:
Disposable
Parameters
viewType
:
string
provider
:
CustomReadonlyEditorProvider
<
CustomDocument
>
|
CustomTextEditorProvider
options
:
{
supportsMultipleEditorsPerDocument
?:
boolean
;
webviewOptions
?:
WebviewPanelOptions
;
}
plugin
:
Plugin
Returns
Disposable
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
$create
Custom
Document
$dispose
Custom
Document
$dispose
Edits
$on
Move
Custom
Editor
$redo
$resolve
Webview
Editor
$revert
$save
$save
As
$undo
get
Custom
Document
Entry
register
Custom
Editor
Provider
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...
$backup(resource: UriComponents, viewType: string, cancellation: CancellationToken): Promise;