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

SOQL queries in binaryish expressions have extraneous indents #96

Closed
dangmai opened this issue Jul 12, 2019 · 0 comments
Closed

SOQL queries in binaryish expressions have extraneous indents #96

dangmai opened this issue Jul 12, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@dangmai
Copy link
Owner

dangmai commented Jul 12, 2019

# Prettier options (if any):

Input:

Boolean b = [SELECT Id FROM Contact WHERE Name = 'Super Long Name That Will Break On Its Own'].Id != null;

Actual output:

Boolean b =
  [
      SELECT Id
      FROM Contact
      WHERE Name = 'Super Long Name That Will Break On Its Own'
    ]
    .Id != null;

Expected output:

Boolean b =
  [
    SELECT Id
    FROM Contact
    WHERE Name = 'Super Long Name That Will Break On Its Own'
  ]
  .Id != null;

Additional information (please fill this out):

  • OS: [e.g. Windows/OS X/Ubuntu] ArchLinux
  • Version: [e.g. 1.0.0] 1.0.0-rc.5
@dangmai dangmai added the bug Something isn't working label Jul 12, 2019
@dangmai dangmai self-assigned this Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant