diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b183a9..93d22a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ ## Changelog All notable changes to this project will be documented in this file. +### [1.3.0] - 2024-06-15 +#### Updated +- Assert snippets to use new Assert class +- Assert snippets to include message parameter + ### [1.2.1] - 2020-07-04 #### Fixed - Incorrect snippets for test class and test method @@ -29,4 +34,5 @@ All notable changes to this project will be documented in this file. [1.1.0]: https://github.com/meajinkya/salesforce-snippets/releases/tag/v1.1.0 [1.1.1]: https://github.com/meajinkya/salesforce-snippets/releases/tag/v1.1.1 [1.2.0]: https://github.com/meajinkya/salesforce-snippets/releases/tag/v1.2.0 -[1.2.1]: https://github.com/meajinkya/salesforce-snippets/releases/tag/v1.2.1 \ No newline at end of file +[1.2.1]: https://github.com/meajinkya/salesforce-snippets/releases/tag/v1.2.1 +[1.3.0]: https://github.com/meajinkya/salesforce-snippets/releases/tag/v1.3.0 \ No newline at end of file diff --git a/package.json b/package.json index 0067cd5..905a035 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "salesforce-snippets", "displayName": "Salesforce Snippets", "description": "Useful Salesforce snippets to speed up writing code for Salesforce platform", - "version": "1.2.1", + "version": "1.3.0", "publisher": "ajinkya-hingne", "engines": { "vscode": "^1.31.0" @@ -45,4 +45,4 @@ "url": "https://github.com/meajinkya/salesforce-snippets.git" }, "license": "SEE LICENSE IN LICENSE.txt" -} \ No newline at end of file +} diff --git a/snippets/apex-snippets.json b/snippets/apex-snippets.json index 150e908..5dc70d0 100644 --- a/snippets/apex-snippets.json +++ b/snippets/apex-snippets.json @@ -130,6 +130,14 @@ "description": "Print debug to log with a variable value" }, + "System debug with variable json pretty": { + "prefix": "debugvarpretty", + "body": [ + "System.debug('$1' + JSON.serializePretty${2:variable});" + ], + "description": "Print debug to log with a variable value" + }, + "Test method" : { "prefix": "testmethod", "body": [ @@ -148,7 +156,7 @@ "Assert" : { "prefix": "assert", "body": [ - "System.assert(${1:booleanExpression});" + "Assert.isTrue(${1:booleanExpression}, '${2:message}');" ], "description": "Assert for single boolean expression" }, @@ -156,7 +164,7 @@ "Assert Equals" : { "prefix": "asserte", "body": [ - "System.assertEquals(${1:expectedValue}, ${2:actualValue});" + "Assert.areEqual(${1:expectedValue}, ${2:actualValue}, '${3:message}');" ], "description": "Assert for comparing two values" }, @@ -164,7 +172,7 @@ "Assert Not Equals" : { "prefix": "assertne", "body": [ - "System.assertNotEquals(${1:expectedValue}, ${2:actualValue});" + "Assert.areNotEqual(${1:expectedValue}, ${2:actualValue}, '${3:message}');" ], "description": "Assert for comparing two values negative" },