mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Add logging snippets for Javascript & typescript (#37889)
This commit is contained in:
committed by
Matt Bierner
parent
8e1bf19f3d
commit
2a8744fa14
@@ -160,5 +160,29 @@
|
||||
"//#endregion"
|
||||
],
|
||||
"description": "Folding Region End"
|
||||
},
|
||||
"Log to the console": {
|
||||
"prefix": "log",
|
||||
"body": [
|
||||
"console.log($1);",
|
||||
"$0"
|
||||
],
|
||||
"description": "Log to the console"
|
||||
},
|
||||
"Log warning to console": {
|
||||
"prefix": "warn",
|
||||
"body": [
|
||||
"console.warn($1);",
|
||||
"$0"
|
||||
],
|
||||
"description": "Log warning to the console"
|
||||
},
|
||||
"Log error to console": {
|
||||
"prefix": "error",
|
||||
"body": [
|
||||
"console.error($1);",
|
||||
"$0"
|
||||
],
|
||||
"description": "Log error to the console"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user