Skip to content

Handling JS error when line length in monaco editor is too long? #29708

Open
@yp05327

Description

@yp05327

Description

  1. click add a new file
  2. input something
  3. ctrl+c all of then and then hold ctrl+vm then you will see:
    image
    image

And I notice there's two tips:

Tokenization is skipped for long lines for performance reasons. This can be configured via editor.maxTokenizationLineLength.

Rendering paused for long line for performance reasons. This can be configured via editor.stopRenderingLineAfter.

So user may get this issue when the file is a min.js?

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

gitea.com

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/bugtype/upstreamThis is an issue in one of Gitea's dependencies and should be reported there

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions