@univerjs/uniscript v0.4.2 • Docs
Class: ScriptEditorService
This service is for loading monaco editor and its resources. It also holds the monaco editor instance so user can interact with the editor programmatically.
Extends
Constructors
new ScriptEditorService()
new ScriptEditorService(_configService): ScriptEditorService
Parameters
Parameter | Type |
---|---|
_configService | IConfigService |
Returns
Overrides
Defined in
packages/uniscript/src/services/script-editor.service.ts:30 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
getEditorInstance()
getEditorInstance(): null | IStandaloneCodeEditor
Returns
null
| IStandaloneCodeEditor
Defined in
packages/uniscript/src/services/script-editor.service.ts:39 (opens in a new tab)
requireVscodeEditor()
requireVscodeEditor(): void
Returns
void
Defined in
packages/uniscript/src/services/script-editor.service.ts:43 (opens in a new tab)
setEditorInstance()
setEditorInstance(editor): IDisposable
Parameters
Parameter | Type |
---|---|
editor | IStandaloneCodeEditor |
Returns
Defined in
packages/uniscript/src/services/script-editor.service.ts:34 (opens in a new tab)