Sorry for the cryptic title!
Everything is indented as if the new keyword does not exist.
# Prettier options (if any):
{
"trailingComma": "none",
"apexInsertFinalNewline": false,
"singleQuote": true,
"printWidth": 140,
"overrides": [
{
"files": "**/classes/**/*.cls",
"options": { "tabWidth": 4 }
},
{
"files": "**/lwc/**/*.html",
"options": { "parser": "lwc", "tabWidth": 4 }
},
{
"files": "*.{cmp,page,component}",
"options": { "parser": "html", "tabWidth": 4 }
}
]
}
Input:
new Flow.Interview.Termination_Handle_Legal_Comments_and_Chatter_Posts(new Map<String, Object>{ 'varCaseId' => currCase.Id, 'varAccountId' => currCase.AccountId, 'varType' => chatterType }).start();
Actual output:
new Flow.Interview.Termination_Handle_Legal_Comments_and_Chatter_Posts(
new Map<String, Object>{ 'varCaseId' => currCase.Id, 'varAccountId' => currCase.AccountId, 'varType' => chatterType }
)
.start();
Additional example
new Flow.Interview.Termination_Handle_Legal_Comments_and_Chatter_Posts(
new Map<String, Object>{
'varCaseId' => currCase.Id,
'varAccountId' => currCase.AccountId,
'varSalesRep' => currCase.Sales_Rep__c,
'varType' => chatterType
}
)
.start();
Expected output:
// prettier-ignore
new Flow.Interview.Termination_Handle_Legal_Comments_and_Chatter_Posts(
new Map<String, Object>{ 'varCaseId' => currCase.Id, 'varAccountId' => currCase.AccountId, 'varType' => chatterType }
)
.start();
Additional information (please fill this out):
- OS: OSX
- Version:
"prettier-plugin-apex": "^1.10.0"
Sorry for the cryptic title!
Everything is indented as if the
newkeyword does not exist.Input:
Actual output:
Additional example
Expected output:
Additional information (please fill this out):
"prettier-plugin-apex": "^1.10.0"