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

Sync 'classifyComponents' settings with backend #533

Merged
merged 2 commits into from
Jan 21, 2018

Conversation

Akryum
Copy link
Member

@Akryum Akryum commented Jan 19, 2018

Apply 'Format component names' user settings to component highlighter

@Akryum Akryum added this to the v4.1.0 milestone Jan 19, 2018
@Akryum Akryum self-assigned this Jan 19, 2018
@Akryum Akryum added this to Review in v4.x Jan 19, 2018
@@ -30,7 +31,8 @@ export function highlight (instance) {
const rect = getInstanceRect(instance)
if (rect) {
let content = ''
const name = getInstanceName(instance)
let name = getInstanceName(instance)
claissifyComponents && (name = classify(name))
Copy link
Member

Choose a reason for hiding this comment

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

why are there so many condition && statement instead of if (condition) statement 😆 I think we should stop adding more of those

@@ -39,6 +40,8 @@ export function initBackend (_bridge) {
} else {
hook.once('init', connect)
}

bridge && config(bridge)
Copy link
Member

@posva posva Jan 20, 2018

Choose a reason for hiding this comment

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

when do you finnd yourself with no bridge?

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

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

tested

@Akryum Akryum merged commit 99cc2e3 into vuejs:master Jan 21, 2018
v4.x automation moved this from Review to Done Jan 21, 2018
@Akryum Akryum deleted the synchronize-classify-setting branch January 21, 2018 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v4.x
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants