Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(settings): add enabled json highlight setting #1390

Merged
merged 2 commits into from
Aug 4, 2023
Merged

feat(settings): add enabled json highlight setting #1390

merged 2 commits into from
Aug 4, 2023

Conversation

ysfscream
Copy link
Member

@ysfscream ysfscream commented Aug 3, 2023

PR Checklist

If you have any questions, you can refer to the Contributing Guide

What is the current behavior?

Please describe the current behavior and link to a relevant issue.

Issue Number

Example: #1362

What is the new behavior?

image image

Please describe the new behavior or provide screenshots.

Does this PR introduce a breaking change?

  • Yes
  • No

Specific Instructions

Are there any specific instructions or things that should be known prior to review?

Other information

@ysfscream ysfscream added feature This pr is a feature migration database migration desktop MQTTX Desktop labels Aug 3, 2023
@ysfscream ysfscream added this to the v1.9.5 milestone Aug 3, 2023
@ysfscream ysfscream self-assigned this Aug 3, 2023
@ysfscream ysfscream linked an issue Aug 3, 2023 that may be closed by this pull request
@@ -31,4 +31,7 @@ export default class SettingEntity {

@Column({ type: 'boolean', default: true })
multiTopics!: boolean

@Column({ type: 'boolean', default: true })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is recommended to set the default value as false

Copy link
Member Author

@ysfscream ysfscream Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, since this feature is a new highlight of this version, it would be meaningless if disabled by default. The performance issue during rendering may exist when the data size is relatively large, but the impact is insignificant for some common concurrent JSON data.

src/lang/settings.ts Outdated Show resolved Hide resolved
@ysfscream ysfscream merged commit b18f6c6 into main Aug 4, 2023
1 check passed
@ysfscream ysfscream deleted the ysf/dev branch August 4, 2023 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop MQTTX Desktop feature This pr is a feature migration database migration
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Feature] Support JSON highlighting in messages
2 participants