@univerjsuniscriptclassesScripteditorservice

@univerjs/uniscript v0.5.4


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

ParameterType
_configServiceIConfigService

Returns

ScriptEditorService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/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

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


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

ParameterType
editorIStandaloneCodeEditor

Returns

IDisposable