Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/plugin-ext
common/plugin-api-rpc
DocumentsMain
Interface DocumentsMain
interface
DocumentsMain
{
$tryCreateDocument
(
options
?:
{
content
?:
string
;
encoding
?:
string
;
language
?:
string
}
,
)
:
Promise
<
UriComponents
>
;
$tryOpenDocument
(
uri
:
UriComponents
,
encoding
?:
string
)
:
Promise
<
boolean
>
;
$trySaveDocument
(
uri
:
UriComponents
)
:
Promise
<
boolean
>
;
$tryShowDocument
(
uri
:
UriComponents
,
options
?:
TextDocumentShowOptions
,
)
:
Promise
<
void
>
;
}
Implemented by
DocumentsMainImpl
Index
Methods
$try
Create
Document
$try
Open
Document
$try
Save
Document
$try
Show
Document
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
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
$try
Create
Document
$try
Open
Document
$try
Save
Document
$try
Show
Document
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...