Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/plugin-ext
main/browser/documents-main
DocumentsMainImpl
Class DocumentsMainImpl
Implements
DocumentsMain
Disposable
Index
Constructors
constructor
Properties
save
Timeout
Methods
$try
Create
Document
$try
Open
Document
$try
Save
Document
$try
Show
Document
dispose
to
Editor
Opener
Options
Constructors
constructor
new
DocumentsMainImpl
(
editorsAndDocuments
:
EditorsAndDocumentsMain
,
notebookDocuments
:
NotebookDocumentsMainImpl
,
modelService
:
EditorModelService
,
rpc
:
RPCProtocol
,
openerService
:
OpenerService
,
shell
:
ApplicationShell
,
untitledResourceResolver
:
UntitledResourceResolver
,
languageService
:
MonacoLanguages
,
)
:
DocumentsMainImpl
Parameters
editorsAndDocuments
:
EditorsAndDocumentsMain
notebookDocuments
:
NotebookDocumentsMainImpl
modelService
:
EditorModelService
rpc
:
RPCProtocol
openerService
:
OpenerService
shell
:
ApplicationShell
untitledResourceResolver
:
UntitledResourceResolver
languageService
:
MonacoLanguages
Returns
DocumentsMainImpl
Properties
Protected
save
Timeout
saveTimeout
:
number
= 1750
Methods
$try
Create
Document
$tryCreateDocument
(
options
?:
{
content
?:
string
;
encoding
?:
string
;
language
?:
string
}
,
)
:
Promise
<
UriComponents
>
Parameters
Optional
options
:
{
content
?:
string
;
encoding
?:
string
;
language
?:
string
}
Returns
Promise
<
UriComponents
>
$try
Open
Document
$tryOpenDocument
(
uri
:
UriComponents
,
encoding
?:
string
)
:
Promise
<
boolean
>
Parameters
uri
:
UriComponents
Optional
encoding
:
string
Returns
Promise
<
boolean
>
$try
Save
Document
$trySaveDocument
(
uri
:
UriComponents
)
:
Promise
<
boolean
>
Parameters
uri
:
UriComponents
Returns
Promise
<
boolean
>
$try
Show
Document
$tryShowDocument
(
uri
:
UriComponents
,
options
?:
TextDocumentShowOptions
,
)
:
Promise
<
void
>
Parameters
uri
:
UriComponents
Optional
options
:
TextDocumentShowOptions
Returns
Promise
<
void
>
dispose
dispose
()
:
void
Dispose this object.
Returns
void
Static
to
Editor
Opener
Options
toEditorOpenerOptions
(
shell
:
ApplicationShell
,
options
?:
TextDocumentShowOptions
,
)
:
undefined
|
EditorOpenerOptions
Parameters
shell
:
ApplicationShell
Optional
options
:
TextDocumentShowOptions
Returns
undefined
|
EditorOpenerOptions
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
save
Timeout
Methods
$try
Create
Document
$try
Open
Document
$try
Save
Document
$try
Show
Document
dispose
to
Editor
Opener
Options
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...
Dispose this object.