Skip to content

Merge together the exact same console events #934

Closed
@GaurangTandon

Description

@GaurangTandon

Nature of issue?

  • Existing feature enhancement

Feature enhancement details:

Consider the following code:

function draw() {
	print("hello");
}

Run it and you will get an output similar to this:

(12) hello
(5) hello
(6) hello
...

Basically, the number of times parameter keeps changing, and a new console event keeps getting logged, even though the console event is literally the same. Therefore, I feel this can be considered as a feature enhancement, to merge together exactly same console events if they are consecutive.

Proposed solution: check if the messageEvent in the handleConsoleEvent in PreviewFrame.jsx is the same as the last one in this.props.consoleEvents. If so, simply increment the times property of the last event. I will attempt to submit a related PR right now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueA beginner-friendly issue, great for first-time contributorsHelp WantedWould love additional input or contributions!Priority:MediumModerately important, should be completed in a fair timeframeType:TaskTasks tied specifically to developer operations and maintenance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions