@univerjsuniscriptclassesScripteditorservice

@univerjs/uniscript v0.5.0-beta.1Docs


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

ParameterType
_configServiceIConfigService

Returns

ScriptEditorService

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/uniscript/src/services/script-editor.service.ts:30

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


getEditorInstance()

getEditorInstance(): null | IStandaloneCodeEditor

Returns

null | IStandaloneCodeEditor

Defined in

submodules/univer/packages/uniscript/src/services/script-editor.service.ts:39


requireVscodeEditor()

requireVscodeEditor(): void

Returns

void

Defined in

submodules/univer/packages/uniscript/src/services/script-editor.service.ts:43


setEditorInstance()

setEditorInstance(editor): IDisposable

Parameters

ParameterType
editorIStandaloneCodeEditor

Returns

IDisposable

Defined in

submodules/univer/packages/uniscript/src/services/script-editor.service.ts:34