Class: ScriptEditorService
Defined in: submodules/univer/packages/uniscript/src/services/script-editor.service.ts:27
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
Defined in: submodules/univer/packages/uniscript/src/services/script-editor.service.ts:30
Parameters
Parameter | Type |
---|---|
_configService | IConfigService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
Methods
dispose()
dispose(): void
Defined in: submodules/univer/packages/uniscript/src/services/script-editor.service.ts:34
Returns
void
Overrides
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
getEditorInstance()
getEditorInstance(): null | IStandaloneCodeEditor
Defined in: submodules/univer/packages/uniscript/src/services/script-editor.service.ts:47
Returns
null
| IStandaloneCodeEditor
requireVscodeEditor()
requireVscodeEditor(): void
Defined in: submodules/univer/packages/uniscript/src/services/script-editor.service.ts:51
Returns
void
setEditorInstance()
setEditorInstance(editor): IDisposable
Defined in: submodules/univer/packages/uniscript/src/services/script-editor.service.ts:42
Parameters
Parameter | Type |
---|---|
editor | IStandaloneCodeEditor |