Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/plugin-ext
main/browser/text-editor-main
TextEditorMain
Class TextEditorMain
Implements
Disposable
Index
Constructors
constructor
Properties
to
Dispose
On
Editor
Accessors
diff
Information
on
Properties
Changed
Event
Methods
apply
Edits
dispose
get
Id
get
Model
get
Properties
insert
Snippet
reveal
Range
set
Configuration
set
Decorations
set
Decorations
Fast
set
Selections
Constructors
constructor
new
TextEditorMain
(
id
:
string
,
model
:
ITextModel
|
ITextModel
,
editor
:
MonacoEditor
|
SimpleMonacoEditor
,
)
:
TextEditorMain
Parameters
id
:
string
model
:
ITextModel
|
ITextModel
editor
:
MonacoEditor
|
SimpleMonacoEditor
Returns
TextEditorMain
Properties
Protected
Readonly
to
Dispose
On
Editor
toDisposeOnEditor
:
DisposableCollection
= ...
Accessors
diff
Information
get
diffInformation
()
:
undefined
|
ILineChange
[]
Returns
undefined
|
ILineChange
[]
on
Properties
Changed
Event
get
onPropertiesChangedEvent
()
:
Event
<
EditorChangedPropertiesData
>
Returns
Event
<
EditorChangedPropertiesData
>
Methods
apply
Edits
applyEdits
(
versionId
:
number
,
edits
:
SingleEditOperation
[]
,
opts
:
ApplyEditsOptions
,
)
:
boolean
Parameters
versionId
:
number
edits
:
SingleEditOperation
[]
opts
:
ApplyEditsOptions
Returns
boolean
dispose
dispose
()
:
void
Dispose this object.
Returns
void
get
Id
getId
()
:
string
Returns
string
get
Model
getModel
()
:
ITextModel
|
ITextModel
Returns
ITextModel
|
ITextModel
get
Properties
getProperties
()
:
undefined
|
TextEditorPropertiesMain
Returns
undefined
|
TextEditorPropertiesMain
insert
Snippet
insertSnippet
(
template
:
string
,
ranges
:
Range
[]
,
opts
:
SnippetEditOptions
,
)
:
boolean
Parameters
template
:
string
ranges
:
Range
[]
opts
:
SnippetEditOptions
Returns
boolean
reveal
Range
revealRange
(
range
:
Range
,
revealType
:
TextEditorRevealType
)
:
void
Parameters
range
:
Range
revealType
:
TextEditorRevealType
Returns
void
set
Configuration
setConfiguration
(
newConfiguration
:
TextEditorConfigurationUpdate
)
:
void
Parameters
newConfiguration
:
TextEditorConfigurationUpdate
Returns
void
set
Decorations
setDecorations
(
key
:
string
,
ranges
:
DecorationOptions
[]
)
:
void
Parameters
key
:
string
ranges
:
DecorationOptions
[]
Returns
void
set
Decorations
Fast
setDecorationsFast
(
key
:
string
,
_ranges
:
number
[]
)
:
void
Parameters
key
:
string
_ranges
:
number
[]
Returns
void
set
Selections
setSelections
(
selections
:
Selection
[]
)
:
void
Parameters
selections
:
Selection
[]
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
to
Dispose
On
Editor
Accessors
diff
Information
on
Properties
Changed
Event
Methods
apply
Edits
dispose
get
Id
get
Model
get
Properties
insert
Snippet
reveal
Range
set
Configuration
set
Decorations
set
Decorations
Fast
set
Selections
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...
Dispose this object.