MonacoService
class
Properties
| Name | Type | Description |
|---|---|---|
activeEditorChange (readonly) |
Observable<Nullable<IStandaloneCodeEditor>> |
Emitted when active editor change. |
activeLangageChange (readonly) |
Observable<Nullable<string>> |
Emitted when active editor language change. |
cursorChange (readonly) |
Observable<Nullable<IPosition>> |
Emitted when active editor cursor position change. |
id (readonly) |
"workbench.contrib.code-editor-service" |
Unique identifier of the contribution. |
onDidCreateEditor (readonly) |
Observable<IStandaloneCodeEditor> |
Emitted when a new editor is created |
onDidFollowLink (readonly) |
Observable<object> |
Emitted when a link is clicked inside the editor |
activeEditor |
unknown |
|
activeLanguage |
unknown |
|
cursor |
unknown |
activate()
Signature
activate(): Promise<void>Returns
Promise<void>
deactivate()
Signature
deactivate(): voidReturns
void
findLanguage()
Signature
findLanguage(uri: Uri): stringParameters
uri(Uri)
Returns
string
onCreateEditor()
Signature
onCreateEditor(editor: IStandaloneCodeEditor): voidParameters
editor(IStandaloneCodeEditor)
Returns
void
onDisposeEditor()
Signature
onDisposeEditor(editor: IStandaloneCodeEditor): voidParameters
editor(IStandaloneCodeEditor)
Returns
void
open()
Signature
open(options: object): Promise<void>Parameters
options(object)
Returns
Promise<void>