Preparing search index...
The search index is not available
Theia TypeDoc
Theia TypeDoc
plugin-ext
CustomEditorsExtImpl
Class CustomEditorsExtImpl
Implements
CustomEditorsExt
Index
Constructors
constructor
Properties
document
Ext
documents
editor
Providers
proxy
webview
Ext
Methods
$create
Custom
Document
$dispose
Custom
Document
$dispose
Edits
$on
Move
Custom
Editor
$on
Save
$on
Save
As
$redo
$resolve
Webview
Editor
$revert
$undo
get
Custom
Document
Entry
get
Custom
Editor
Provider
register
Custom
Editor
Provider
support
Editing
Constructors
constructor
new
Custom
Editors
Ext
Impl
(
rpc
,
documentExt
,
webviewExt
)
:
CustomEditorsExtImpl
Parameters
rpc
:
RPCProtocol
documentExt
:
DocumentsExtImpl
webviewExt
:
WebviewsExtImpl
Returns
CustomEditorsExtImpl
Properties
Private
Readonly
document
Ext
document
Ext
:
DocumentsExtImpl
Private
Readonly
documents
documents
:
CustomDocumentStore
= ...
Private
Readonly
editor
Providers
editor
Providers
:
EditorProviderStore
= ...
Private
Readonly
proxy
proxy
:
CustomEditorsMain
Private
Readonly
webview
Ext
webview
Ext
:
WebviewsExtImpl
Methods
$create
Custom
Document
$create
Custom
Document
(
resource
,
viewType
,
openContext
,
cancellation
)
:
Promise
<
{
editable
:
boolean
;
}
>
Parameters
resource
:
UriComponents
viewType
:
string
openContext
:
CustomDocumentOpenContext
cancellation
:
CancellationToken
Returns
Promise
<
{
editable
:
boolean
;
}
>
$dispose
Custom
Document
$dispose
Custom
Document
(
resource
,
viewType
)
:
Promise
<
void
>
Parameters
resource
:
UriComponents
viewType
:
string
Returns
Promise
<
void
>
$dispose
Edits
$dispose
Edits
(
resourceComponents
,
viewType
,
editIds
)
:
void
Parameters
resourceComponents
:
UriComponents
viewType
:
string
editIds
:
number
[]
Returns
void
$on
Move
Custom
Editor
$on
Move
Custom
Editor
(
handle
,
newResourceComponents
,
viewType
)
:
Promise
<
void
>
Parameters
handle
:
string
newResourceComponents
:
UriComponents
viewType
:
string
Returns
Promise
<
void
>
$on
Save
$on
Save
(
resourceComponents
,
viewType
,
cancellation
)
:
Promise
<
void
>
Parameters
resourceComponents
:
UriComponents
viewType
:
string
cancellation
:
CancellationToken
Returns
Promise
<
void
>
$on
Save
As
$on
Save
As
(
resourceComponents
,
viewType
,
targetResource
,
cancellation
)
:
Promise
<
void
>
Parameters
resourceComponents
:
UriComponents
viewType
:
string
targetResource
:
UriComponents
cancellation
:
CancellationToken
Returns
Promise
<
void
>
$redo
$redo
(
resourceComponents
,
viewType
,
editId
,
isDirty
)
:
Promise
<
void
>
Parameters
resourceComponents
:
UriComponents
viewType
:
string
editId
:
number
isDirty
:
boolean
Returns
Promise
<
void
>
$resolve
Webview
Editor
$resolve
Webview
Editor
(
resource
,
handler
,
viewType
,
title
,
position
,
options
,
cancellation
)
:
Promise
<
void
>
Parameters
resource
:
UriComponents
handler
:
string
viewType
:
string
title
:
string
position
:
number
options
:
WebviewPanelOptions
cancellation
:
CancellationToken
Returns
Promise
<
void
>
$revert
$revert
(
resourceComponents
,
viewType
,
cancellation
)
:
Promise
<
void
>
Parameters
resourceComponents
:
UriComponents
viewType
:
string
cancellation
:
CancellationToken
Returns
Promise
<
void
>
$undo
$undo
(
resourceComponents
,
viewType
,
editId
,
isDirty
)
:
Promise
<
void
>
Parameters
resourceComponents
:
UriComponents
viewType
:
string
editId
:
number
isDirty
:
boolean
Returns
Promise
<
void
>
get
Custom
Document
Entry
get
Custom
Document
Entry
(
viewType
,
resource
)
:
CustomDocumentStoreEntry
Parameters
viewType
:
string
resource
:
UriComponents
Returns
CustomDocumentStoreEntry
Private
get
Custom
Editor
Provider
get
Custom
Editor
Provider
(
viewType
)
:
CustomEditorProvider
<
CustomDocument
>
Parameters
viewType
:
string
Returns
CustomEditorProvider
<
CustomDocument
>
register
Custom
Editor
Provider
register
Custom
Editor
Provider
(
viewType
,
provider
,
options
,
plugin
)
:
Disposable
Parameters
viewType
:
string
provider
:
CustomReadonlyEditorProvider
<
CustomDocument
>
|
CustomTextEditorProvider
options
:
{
supportsMultipleEditorsPerDocument
?:
boolean
;
webviewOptions
?:
WebviewPanelOptions
;
}
Optional
supports
Multiple
Editors
Per
Document
?:
boolean
Optional
webview
Options
?:
WebviewPanelOptions
plugin
:
Plugin
Returns
Disposable
Private
support
Editing
support
Editing
(
provider
)
:
provider
is
CustomEditorProvider
<
CustomDocument
>
Parameters
provider
:
CustomReadonlyEditorProvider
<
CustomDocument
>
|
CustomTextEditorProvider
|
CustomEditorProvider
<
CustomDocument
>
Returns
provider
is
CustomEditorProvider
<
CustomDocument
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
constructor
document
Ext
documents
editor
Providers
proxy
webview
Ext
$create
Custom
Document
$dispose
Custom
Document
$dispose
Edits
$on
Move
Custom
Editor
$on
Save
$on
Save
As
$redo
$resolve
Webview
Editor
$revert
$undo
get
Custom
Document
Entry
get
Custom
Editor
Provider
register
Custom
Editor
Provider
support
Editing
Theia TypeDoc
Loading...