Skip to content

CodeEditorModule marked as deprecated #1561

Open
@itsmostafa

Description

@itsmostafa

CodeEditorModule is marked as deprecated even though CodeEditorModule is still needed for the code editor to work.

I believe the intention was to deprecate the forRoot() method instead:

        CodeEditorModule.forRoot({
            typingsWorkerUrl: 'assets/workers/typings-worker.js',
            baseUrl: 'assets/monaco'
        })

so it can be replaced with

        provideCodeEditor({
            typingsWorkerUrl: 'assets/workers/typings-worker.js',
            baseUrl: 'assets/monaco'
        })

while simultaneously maintaining the import of CodeEditorModule without the forRoot() method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions