apexdox-vs-code icon indicating copy to clipboard operation
apexdox-vs-code copied to clipboard

Params variable types not parsed correctly without whitespace in method declaration

Open docbill opened this issue 3 years ago • 2 comments

When you have a method like foo(String bar,String fi), then fi is not detected as a String. Yet if you do the same list with a space after the comma, it works normally.

docbill avatar Sep 22 '22 13:09 docbill

Use Prettier to ensure that your code adheres to accepted Apex standards.

dschach avatar Sep 24 '22 22:09 dschach

@docbill @dschach This is likely an easy fix, and should probably be supported - while whitespace between commas in param lists is probably best practice (and using Prettier to enforce best practices is recommended and even adopted by SF themselves these days), it is still perfectly valid Apex. I will look into it.

no-stack-dub-sack avatar Oct 04 '22 19:10 no-stack-dub-sack