Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ Fixed for any bug fixes.
Security to invite users to upgrade in case of vulnerabilities.
-->

## [1.2.0] - 2022/12/09

### Added

- Experimental console.profile added as snippet

## [1.1.1] - 2022/07/29

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ Below is a list of all available snippets and the triggers of each one. The **$*
| `ctr→` | [trace](https://developer.mozilla.org/en-US/docs/Web/API/Console/trace) | `console.trace($name)█` |
| `cc→` | [count](https://developer.mozilla.org/en-US/docs/Web/API/Console/count) | `console.count($label)█` |
| `ccr→` | [count reset](https://developer.mozilla.org/en-US/docs/Web/API/Console/countReset) | `console.countReset($label)█` |
| `cps→` | [profile start](https://developer.mozilla.org/en-US/docs/Web/API/console/profile) | `console.profile()█` |
| `cpe→` | [profile end](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd) | `console.profileEnd()█` |
| `cpw→` | profile wrapper | <code>console.profile()<br/>█<br/>console.profileEnd()</code> |
| `cts→` | [time start](https://developer.mozilla.org/en-US/docs/Web/API/Console/time) | `console.time($label)█` |
| `ctl→` | [time log](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog) | `console.timeLog($label)█` |
| `cte→` | [time end](https://developer.mozilla.org/en-US/docs/Web/API/console/timeEnd) | `console.timeEnd($label)█` |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "debug-snippets",
"description": "VS Code Debug snippets for JS, TS and CSS",
"version": "1.1.1",
"version": "1.2.0",
"displayName": "Debug Snippets",
"publisher": "deinsoftware",
"icon": "images/light-icon.png",
Expand Down
19 changes: 19 additions & 0 deletions snippets/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,25 @@
"body": "console.countReset('${1:label}')$0",
"description": "Console Count Reset"
},
"consoleProfileStart": {
"prefix": "cps",
"body": "console.profile()$0",
"description": "Console Profile Start"
},
"consoleProfileEnd": {
"prefix": "cpe",
"body": "console.profileEnd('${1:label}')$0",
"description": "Console Profile End"
},
"consoleProfileWrapper": {
"prefix": "cpw",
"body": [
"console.profile()",
"$0",
"console.profileEnd()"
],
"description": "Console Time Wrapper"
},
"consoleTimeStart": {
"prefix": "cts",
"body": "console.time('${1:label}')$0",
Expand Down