Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/plugin-ext
plugin/notebook/notebooks
NotebooksExtImpl
Class NotebooksExtImpl
Implements
NotebooksExt
Index
Constructors
constructor
Properties
on
Did
Change
Active
Notebook
Editor
on
Did
Change
Visible
Notebook
Editors
on
Did
Close
Notebook
Document
on
Did
Open
Notebook
Document
Accessors
active
Api
Notebook
Editor
visible
Api
Notebook
Editors
Methods
$accept
Active
Cell
Editor
Change
$accept
Documents
And
Editors
Delta
$data
To
Notebook
$notebook
To
Data
$provide
Notebook
Cell
Status
Bar
Items
$release
Notebook
Cell
Status
Bar
Items
create
Notebook
Document
get
All
Api
Documents
get
Editor
By
Id
get
Notebook
Document
open
Notebook
Document
register
Notebook
Cell
Status
Bar
Item
Provider
register
Notebook
Serializer
show
Notebook
Document
wait
For
Notebook
Document
Constructors
constructor
new
NotebooksExtImpl
(
rpc
:
RPCProtocol
,
commands
:
CommandRegistryImpl
,
textDocumentsAndEditors
:
EditorsAndDocumentsExtImpl
,
textDocuments
:
DocumentsExtImpl
,
)
:
NotebooksExtImpl
Parameters
rpc
:
RPCProtocol
commands
:
CommandRegistryImpl
textDocumentsAndEditors
:
EditorsAndDocumentsExtImpl
textDocuments
:
DocumentsExtImpl
Returns
NotebooksExtImpl
Properties
Readonly
on
Did
Change
Active
Notebook
Editor
onDidChangeActiveNotebookEditor
:
Event
<
undefined
|
NotebookEditor
>
= ...
on
Did
Change
Visible
Notebook
Editors
onDidChangeVisibleNotebookEditors
:
Event
<
NotebookEditor
[]
>
= ...
on
Did
Close
Notebook
Document
onDidCloseNotebookDocument
:
Event
<
NotebookDocument
>
= ...
on
Did
Open
Notebook
Document
onDidOpenNotebookDocument
:
Event
<
NotebookDocument
>
= ...
Accessors
active
Api
Notebook
Editor
get
activeApiNotebookEditor
()
:
undefined
|
NotebookEditor
Returns
undefined
|
NotebookEditor
visible
Api
Notebook
Editors
get
visibleApiNotebookEditors
()
:
NotebookEditor
[]
Returns
NotebookEditor
[]
Methods
$accept
Active
Cell
Editor
Change
$acceptActiveCellEditorChange
(
newActiveEditor
:
null
|
string
)
:
void
Parameters
newActiveEditor
:
null
|
string
Returns
void
$accept
Documents
And
Editors
Delta
$acceptDocumentsAndEditorsDelta
(
delta
:
NotebookDocumentsAndEditorsDelta
,
)
:
Promise
<
void
>
Parameters
delta
:
NotebookDocumentsAndEditorsDelta
Returns
Promise
<
void
>
$data
To
Notebook
$dataToNotebook
(
handle
:
number
,
bytes
:
BinaryBuffer
,
token
:
CancellationToken
,
)
:
Promise
<
NotebookDataDto
>
Parameters
handle
:
number
bytes
:
BinaryBuffer
token
:
CancellationToken
Returns
Promise
<
NotebookDataDto
>
$notebook
To
Data
$notebookToData
(
handle
:
number
,
data
:
NotebookDataDto
,
token
:
CancellationToken
,
)
:
Promise
<
BinaryBuffer
>
Parameters
handle
:
number
data
:
NotebookDataDto
token
:
CancellationToken
Returns
Promise
<
BinaryBuffer
>
$provide
Notebook
Cell
Status
Bar
Items
$provideNotebookCellStatusBarItems
(
handle
:
number
,
uri
:
UriComponents
,
index
:
number
,
token
:
CancellationToken
,
)
:
Promise
<
undefined
|
NotebookCellStatusBarListDto
>
Parameters
handle
:
number
uri
:
UriComponents
index
:
number
token
:
CancellationToken
Returns
Promise
<
undefined
|
NotebookCellStatusBarListDto
>
$release
Notebook
Cell
Status
Bar
Items
$releaseNotebookCellStatusBarItems
(
cacheId
:
number
)
:
void
Parameters
cacheId
:
number
Returns
void
create
Notebook
Document
createNotebookDocument
(
options
:
{
content
?:
NotebookData
;
viewType
:
string
}
,
)
:
Promise
<
URI
>
Parameters
options
:
{
content
?:
NotebookData
;
viewType
:
string
}
Returns
Promise
<
URI
>
get
All
Api
Documents
getAllApiDocuments
()
:
NotebookDocument
[]
Returns
NotebookDocument
[]
get
Editor
By
Id
getEditorById
(
editorId
:
string
)
:
NotebookEditor
Parameters
editorId
:
string
Returns
NotebookEditor
get
Notebook
Document
getNotebookDocument
(
uri
:
URI
,
relaxed
:
true
)
:
undefined
|
NotebookDocument
Parameters
uri
:
URI
relaxed
:
true
Returns
undefined
|
NotebookDocument
getNotebookDocument
(
uri
:
URI
)
:
NotebookDocument
Parameters
uri
:
URI
Returns
NotebookDocument
open
Notebook
Document
openNotebookDocument
(
uri
:
URI
)
:
Promise
<
NotebookDocument
>
Parameters
uri
:
URI
Returns
Promise
<
NotebookDocument
>
register
Notebook
Cell
Status
Bar
Item
Provider
registerNotebookCellStatusBarItemProvider
(
notebookType
:
string
,
provider
:
NotebookCellStatusBarItemProvider
,
)
:
Disposable
Parameters
notebookType
:
string
provider
:
NotebookCellStatusBarItemProvider
Returns
Disposable
register
Notebook
Serializer
registerNotebookSerializer
(
plugin
:
Plugin
,
viewType
:
string
,
serializer
:
NotebookSerializer
,
options
?:
NotebookDocumentContentOptions
,
)
:
Disposable
Parameters
plugin
:
Plugin
viewType
:
string
serializer
:
NotebookSerializer
Optional
options
:
NotebookDocumentContentOptions
Returns
Disposable
show
Notebook
Document
showNotebookDocument
(
notebookOrUri
:
URI
|
NotebookDocument
,
options
?:
NotebookDocumentShowOptions
,
)
:
Promise
<
NotebookEditor
>
Parameters
notebookOrUri
:
URI
|
NotebookDocument
Optional
options
:
NotebookDocumentShowOptions
Returns
Promise
<
NotebookEditor
>
wait
For
Notebook
Document
waitForNotebookDocument
(
uri
:
URI
,
duration
?:
number
)
:
Promise
<
NotebookDocument
>
Parameters
uri
:
URI
duration
:
number
= 2000
Returns
Promise
<
NotebookDocument
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
on
Did
Change
Active
Notebook
Editor
on
Did
Change
Visible
Notebook
Editors
on
Did
Close
Notebook
Document
on
Did
Open
Notebook
Document
Accessors
active
Api
Notebook
Editor
visible
Api
Notebook
Editors
Methods
$accept
Active
Cell
Editor
Change
$accept
Documents
And
Editors
Delta
$data
To
Notebook
$notebook
To
Data
$provide
Notebook
Cell
Status
Bar
Items
$release
Notebook
Cell
Status
Bar
Items
create
Notebook
Document
get
All
Api
Documents
get
Editor
By
Id
get
Notebook
Document
open
Notebook
Document
register
Notebook
Cell
Status
Bar
Item
Provider
register
Notebook
Serializer
show
Notebook
Document
wait
For
Notebook
Document
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...