2.2.5.6 release notes

 2.2.5.6

  • Apex postfix completion template enhancements
    • Added support for creation of custom Apex postfix completion templates. A demonstration video is available here.
    • Added the following new Apex postfix completion templates:
      • Test assertions
        • at - Wraps the expression in Assert.isTrue().
        • af - Wraps the expression in Assert.isFalse().
        • ae - Wraps the expression in Assert.areEqual().
        • ane - Wraps the expression in Assert.areNotEqual().
        • aio - Wraps the expression in Assert.isInstanceOfType().
        • anio - Wraps the expression in Assert.isNotInstanceOfType().
        • an - Wraps the expression in Assert.isNull().
        • ann - Wraps the expression in Assert.isNotNull().
      • Statements
        • if - Adds a check verifying that a boolean expression is true.
        • else - Adds a check verifying that a boolean expression is false.
        • switch - Adds a switch statement for values of the expression.
        • return - Returns the expression from the containing method.
        • throw - Throws the Exception type expression.
        • try - Inserts a statement in a try-catch block.
        • while - Iterates while the condition is true with a pre-iteration check.
        • do - Iterates while the condition is true with a post-iteration check.
        • runAs - Creates a System.runAs() block for the User.
        • itme - Iterates key/value pairs of a Map.
      • Debug logging
        • sdv - Logs the expression using System.debug() as expr=<expr>.
        • sdvj / sdjv - Logs the JSON-serialized expression using System.debug() as expr=<expr>. Much appreciation to Chris Baker for the suggestion!

    A list of all bundled Apex postfix completion templates can be found here.

  • Added the following new Apex live templates for test assertions using System.Assert:
    • at - Assert.isTrue().
    • af - Assert.isFalse().
    • ae - Assert.areEqual().
    • ane - Assert.areNotEqual().
    • aio - Assert.isInstanceOfType().
    • anio - Assert.isNotInstanceOfType().
    • an - Assert.isNull().
    • ann - Assert.isNotNull().
    • fail - Assert.fail('') (changed from System.assert(false, '')).

    A list of all bundled live templates can be found here.

  • Other minor fixes and improvements.