Search
Preparing search index...
The search index is not available
Theia TypeDoc
Options
All
Public
Public/Protected
All
Inherited
Menu
Theia TypeDoc
plugin-ext
CustomEditorsExtImpl
Class CustomEditorsExtImpl
Hierarchy
CustomEditorsExtImpl
Implements
CustomEditorsExt
Index
Constructors
constructor
Properties
documents
editor
Providers
proxy
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
:
RPCProtocol
, documentExt
:
DocumentsExtImpl
, webviewExt
:
WebviewsExtImpl
, workspace
:
WorkspaceExtImpl
)
:
CustomEditorsExtImpl
Parameters
rpc:
RPCProtocol
documentExt:
DocumentsExtImpl
webviewExt:
WebviewsExtImpl
workspace:
WorkspaceExtImpl
Returns
CustomEditorsExtImpl
Properties
Private
Readonly
documents
documents
:
CustomDocumentStore
= ...
Private
Readonly
editor
Providers
editor
Providers
:
EditorProviderStore
= ...
Private
Readonly
proxy
proxy
:
CustomEditorsMain
Methods
$create
Custom
Document
$create
Custom
Document
(
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
$dispose
Custom
Document
(
resource
:
UriComponents
, viewType
:
string
)
:
Promise
<
void
>
Parameters
resource:
UriComponents
viewType:
string
Returns
Promise
<
void
>
$dispose
Edits
$dispose
Edits
(
resourceComponents
:
UriComponents
, viewType
:
string
, editIds
:
number
[]
)
:
void
Parameters
resourceComponents:
UriComponents
viewType:
string
editIds:
number
[]
Returns
void
$on
Move
Custom
Editor
$on
Move
Custom
Editor
(
handle
:
string
, newResourceComponents
:
UriComponents
, viewType
:
string
)
:
Promise
<
void
>
Parameters
handle:
string
newResourceComponents:
UriComponents
viewType:
string
Returns
Promise
<
void
>
$on
Save
$on
Save
(
resourceComponents
:
UriComponents
, viewType
:
string
, cancellation
:
CancellationToken
)
:
Promise
<
void
>
Parameters
resourceComponents:
UriComponents
viewType:
string
cancellation:
CancellationToken
Returns
Promise
<
void
>
$on
Save
As
$on
Save
As
(
resourceComponents
:
UriComponents
, viewType
:
string
, targetResource
:
UriComponents
, cancellation
:
CancellationToken
)
:
Promise
<
void
>
Parameters
resourceComponents:
UriComponents
viewType:
string
targetResource:
UriComponents
cancellation:
CancellationToken
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
$resolve
Webview
Editor
<
T
>
(
resource
:
UriComponents
, handler
:
string
, viewType
:
string
, title
:
string
, widgetOpenerOptions
:
undefined
|
T
, options
:
WebviewPanelOptions
&
WebviewOptions
, cancellation
:
CancellationToken
)
:
Promise
<
void
>
Type Parameters
T
Parameters
resource:
UriComponents
handler:
string
viewType:
string
title:
string
widgetOpenerOptions:
undefined
|
T
options:
WebviewPanelOptions
&
WebviewOptions
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
>
$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
get
Custom
Document
Entry
(
viewType
:
string
, resource
:
UriComponents
)
:
CustomDocumentStoreEntry
Parameters
viewType:
string
resource:
UriComponents
Returns
CustomDocumentStoreEntry
Private
get
Custom
Editor
Provider
get
Custom
Editor
Provider
(
viewType
:
string
)
:
CustomEditorProvider
<
CustomDocument
>
Parameters
viewType:
string
Returns
CustomEditorProvider
<
CustomDocument
>
register
Custom
Editor
Provider
register
Custom
Editor
Provider
(
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
}
Optional
supports
Multiple
Editors
Per
Document
?:
boolean
Optional
webview
Options
?:
WebviewPanelOptions
plugin:
Plugin
Returns
Disposable
Private
support
Editing
support
Editing
(
provider
:
CustomReadonlyEditorProvider
<
CustomDocument
>
|
CustomTextEditorProvider
|
CustomEditorProvider
<
CustomDocument
>
)
:
provider
is
CustomEditorProvider
<
CustomDocument
>
Parameters
provider:
CustomReadonlyEditorProvider
<
CustomDocument
>
|
CustomTextEditorProvider
|
CustomEditorProvider
<
CustomDocument
>
Returns
provider
is
CustomEditorProvider
<
CustomDocument
>
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
Comments
Command
Arg
Comments
Context
Command
Arg
Comments
Edit
Command
Arg
Composite
Tree
View
Node
Connection
Closed
Error
Custom
Editor
Widget
Data
Transfer
Data
Transfer
Data
Transfer
Item
Data
Transfer
Item
Debug
Adapter
Executable
Debug
Adapter
Inline
Implementation
Debug
Adapter
Named
Pipe
Server
Debug
Adapter
Server
Decoration
Range
Behavior
Decoration
Render
Options
Document
Link
Inlay
Hint
Kind
Known
Commands
Notification
Main
Object
Identifier
Parameter
Information
Plugin
Contributions
Plugin
Icon
Path
Plugin
Identifiers
Plugin
Package
Plugin
Paths
Plugin
View
Registry
Plugin
View
Widget
Process
Terminate
Message
Process
Terminated
Message
Schemes
Scm
Command
Arg
Selection
Provider
Commands
Signature
Help
Signature
Information
Symbol
Kind
Symbol
Kind
Converter
Text
Document
Show
Options
Text
Editor
Selection
Change
Kind
Themable
Decoration
Attachment
Render
Options
Themable
Decoration
Render
Options
Theme
Icon
Timeline
Command
Arg
Tree
View
Item
Reference
Tree
View
Node
View
Column
Webview
External
Endpoint
Webview
Widget
Workspace
Text
Edit
Dto
plugin-
ext-
vscode
plugin-
metrics
preferences
preview
process
property-
view
scm
scm-
extra
search-
in-
workspace
secondary-
window
task
terminal
timeline
toolbar
typehierarchy
userstorage
variable-
resolver
vsx-
registry
workspace
Custom
Editors
Ext
Impl
constructor
documents
editor
Providers
proxy
$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