Search
Preparing search index...
The search index is not available
Theia TypeDoc
Options
All
Public
Public/Protected
All
Inherited
Menu
Theia TypeDoc
plugin-ext
TextEditorExt
Class TextEditorExt
Hierarchy
TextEditorExt
Implements
TextEditor
Index
Constructors
constructor
Properties
_document
_options
_view
Column
disposed
Accessors
document
options
selection
selections
view
Column
visible
Ranges
Methods
_accept
View
Column
accept
Options
accept
Selections
accept
View
Column
accept
Visible
Ranges
apply
Edit
dispose
edit
insert
Snippet
reveal
Range
run
OnProxy
set
Decorations
try
Set
Selection
Constructors
constructor
new
Text
Editor
Ext
(
proxy
:
TextEditorsMain
, id
:
string
, document
:
DocumentDataExt
, _selections
:
Selection
[]
, options
:
TextEditorConfiguration
, _visibleRanges
:
Range
[]
, viewColumn
:
undefined
|
Active
|
Beside
|
One
|
Two
|
Three
|
Four
|
Five
|
Six
|
Seven
|
Eight
|
Nine
)
:
TextEditorExt
Parameters
proxy:
TextEditorsMain
id:
string
document:
DocumentDataExt
_selections:
Selection
[]
options:
TextEditorConfiguration
_visibleRanges:
Range
[]
viewColumn:
undefined
|
Active
|
Beside
|
One
|
Two
|
Three
|
Four
|
Five
|
Six
|
Seven
|
Eight
|
Nine
Returns
TextEditorExt
Properties
Private
_document
_document
:
DocumentDataExt
Private
_options
_options
:
TextEditorOptionsExt
Private
_view
Column
_view
Column
:
undefined
|
Active
|
Beside
|
One
|
Two
|
Three
|
Four
|
Five
|
Six
|
Seven
|
Eight
|
Nine
Private
disposed
disposed
:
boolean
= false
Accessors
document
get
document
(
)
:
TextDocument
set
document
(
doc
:
TextDocument
)
:
void
Returns
TextDocument
Parameters
doc:
TextDocument
Returns
void
options
get
options
(
)
:
TextEditorOptions
set
options
(
val
:
TextEditorOptions
)
:
void
Returns
TextEditorOptions
Parameters
val:
TextEditorOptions
Returns
void
selection
get
selection
(
)
:
Selection
set
selection
(
val
:
Selection
)
:
void
Returns
Selection
Parameters
val:
Selection
Returns
void
selections
get
selections
(
)
:
Selection
[]
set
selections
(
val
:
Selection
[]
)
:
void
Returns
Selection
[]
Parameters
val:
Selection
[]
Returns
void
view
Column
get
viewColumn
(
)
:
undefined
|
Active
|
Beside
|
One
|
Two
|
Three
|
Four
|
Five
|
Six
|
Seven
|
Eight
|
Nine
set
viewColumn
(
value
:
undefined
|
Active
|
Beside
|
One
|
Two
|
Three
|
Four
|
Five
|
Six
|
Seven
|
Eight
|
Nine
)
:
void
Returns
undefined
|
Active
|
Beside
|
One
|
Two
|
Three
|
Four
|
Five
|
Six
|
Seven
|
Eight
|
Nine
Parameters
value:
undefined
|
Active
|
Beside
|
One
|
Two
|
Three
|
Four
|
Five
|
Six
|
Seven
|
Eight
|
Nine
Returns
void
visible
Ranges
get
visibleRanges
(
)
:
Range
[]
set
visibleRanges
(
val
:
Range
[]
)
:
void
Returns
Range
[]
Parameters
val:
Range
[]
Returns
void
Methods
_accept
View
Column
_accept
View
Column
(
value
:
ViewColumn
)
:
void
Parameters
value:
ViewColumn
Returns
void
accept
Options
accept
Options
(
options
:
TextEditorConfiguration
)
:
void
Parameters
options:
TextEditorConfiguration
Returns
void
accept
Selections
accept
Selections
(
selections
:
Selection
[]
)
:
void
Parameters
selections:
Selection
[]
Returns
void
accept
View
Column
accept
View
Column
(
val
:
ViewColumn
)
:
void
Parameters
val:
ViewColumn
Returns
void
accept
Visible
Ranges
accept
Visible
Ranges
(
range
:
Range
[]
)
:
void
Parameters
range:
Range
[]
Returns
void
Private
apply
Edit
apply
Edit
(
edit
:
TextEditorEdit
)
:
Promise
<
boolean
>
Parameters
edit:
TextEditorEdit
Returns
Promise
<
boolean
>
dispose
dispose
(
)
:
void
Returns
void
edit
edit
(
callback
:
(
editBuilder
:
TextEditorEdit
)
=>
void
, options
?:
{
undoStopAfter
:
boolean
;
undoStopBefore
:
boolean
}
)
:
Promise
<
boolean
>
Parameters
callback:
(
editBuilder
:
TextEditorEdit
)
=>
void
(
editBuilder
:
TextEditorEdit
)
:
void
Parameters
editBuilder:
TextEditorEdit
Returns
void
options:
{
undoStopAfter
:
boolean
;
undoStopBefore
:
boolean
}
= ...
undo
Stop
After
:
boolean
undo
Stop
Before
:
boolean
Returns
Promise
<
boolean
>
insert
Snippet
insert
Snippet
(
snippet
:
SnippetString
, location
?:
Position
|
Range
|
Range
[]
|
Position
[]
, options
?:
{
undoStopAfter
:
boolean
;
undoStopBefore
:
boolean
}
)
:
Promise
<
boolean
>
Parameters
snippet:
SnippetString
Optional
location:
Position
|
Range
|
Range
[]
|
Position
[]
options:
{
undoStopAfter
:
boolean
;
undoStopBefore
:
boolean
}
= ...
undo
Stop
After
:
boolean
undo
Stop
Before
:
boolean
Returns
Promise
<
boolean
>
reveal
Range
reveal
Range
(
range
:
Range
, revealType
?:
Default
|
InCenter
|
InCenterIfOutsideViewport
|
AtTop
)
:
void
Parameters
range:
Range
Optional
revealType:
Default
|
InCenter
|
InCenterIfOutsideViewport
|
AtTop
Returns
void
Private
run
OnProxy
run
OnProxy
(
callback
:
(
)
=>
Promise
<
any
>
)
:
Promise
<
undefined
|
TextEditorExt
>
Parameters
callback:
(
)
=>
Promise
<
any
>
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
Returns
Promise
<
undefined
|
TextEditorExt
>
set
Decorations
set
Decorations
(
decorationType
:
TextEditorDecorationType
, rangesOrOptions
:
Range
[]
|
DecorationOptions
[]
)
:
void
Parameters
decorationType:
TextEditorDecorationType
rangesOrOptions:
Range
[]
|
DecorationOptions
[]
Returns
void
Private
try
Set
Selection
try
Set
Selection
(
)
:
Promise
<
undefined
|
TextEditor
>
Returns
Promise
<
undefined
|
TextEditor
>
Exports
plugin-
ext
Comments
Command
Arg
Comments
Context
Command
Arg
Comments
Edit
Command
Arg
Composite
Tree
View
Node
Connection
Closed
Error
Custom
Editor
Widget
Debug
Adapter
Executable
Debug
Adapter
Inline
Implementation
Debug
Adapter
Named
Pipe
Server
Debug
Adapter
Server
Decoration
Range
Behavior
Decoration
Render
Options
Document
Link
Known
Commands
Notification
Main
Object
Identifier
Objects
Transferrer
Parameter
Information
Plugin
Contributions
Plugin
Icon
Path
Plugin
Package
Plugin
Paths
Plugin
View
Registry
Plugin
View
Widget
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
Node
Tree
View
Selection
Webview
External
Endpoint
Webview
Widget
Workspace
Text
Edit
Dto
Text
Editor
Ext
constructor
_document
_options
_view
Column
disposed
document
options
selection
selections
view
Column
visible
Ranges
_accept
View
Column
accept
Options
accept
Selections
accept
View
Column
accept
Visible
Ranges
apply
Edit
dispose
edit
insert
Snippet
reveal
Range
run
OnProxy
set
Decorations
try
Set
Selection