Skip to content

Instantly share code, notes, and snippets.

@toddwseattle
Last active August 24, 2020 00:50
Show Gist options
  • Save toddwseattle/71f1c2b7b439c6523cc543edab030842 to your computer and use it in GitHub Desktop.
Save toddwseattle/71f1c2b7b439c6523cc543edab030842 to your computer and use it in GitHub Desktop.
vscode debug configuration for an nx configuration with jest and vscode-jest extension
{"lastUpload":"2020-08-24T00:50:10.434Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "850c6bb1-4a81-4f83-a81f-835d651a211c",
"publisherId": "Mikael.Angular-BeastCode",
"publisherDisplayName": "Mikael"
},
"name": "Angular-BeastCode",
"publisher": "Mikael",
"version": "8.1.2"
},
{
"metadata": {
"id": "6e440e71-8ed9-4f25-bb78-4b13096b8a03",
"publisherId": "formulahendry.auto-rename-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-rename-tag",
"publisher": "formulahendry",
"version": "0.1.4"
},
{
"metadata": {
"id": "f583eafd-aa0d-4ccb-8f44-d1e610389660",
"publisherId": "CoenraadS.bracket-pair-colorizer",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer",
"publisher": "CoenraadS",
"version": "1.0.61"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"
},
{
"metadata": {
"id": "1ec62ca5-d7f9-4ddb-a882-e8d018c0aefd",
"publisherId": "msjsdiag.debugger-for-chrome",
"publisherDisplayName": "msjsdiag"
},
"name": "debugger-for-chrome",
"publisher": "msjsdiag",
"version": "4.12.10"
},
{
"metadata": {
"id": "fd110b00-4782-4794-bf1f-cdeae242954f",
"publisherId": "msjsdiag.debugger-for-edge",
"publisherDisplayName": "msjsdiag"
},
"name": "debugger-for-edge",
"publisher": "msjsdiag",
"version": "1.0.15"
},
{
"metadata": {
"id": "8ee0c715-ca9e-4ce2-8841-5faa5e0f3255",
"publisherId": "andys8.jest-snippets",
"publisherDisplayName": "andys8"
},
"name": "jest-snippets",
"publisher": "andys8",
"version": "1.8.0"
},
{
"metadata": {
"id": "607fd052-be03-4363-b657-2bd62b83d28a",
"publisherId": "ms-vscode-remote.remote-ssh",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-ssh",
"publisher": "ms-vscode-remote",
"version": "0.51.0"
},
{
"metadata": {
"id": "bfeaf631-bcff-4908-93ed-fda4ef9a0c5c",
"publisherId": "ms-vscode-remote.remote-ssh-edit",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-ssh-edit",
"publisher": "ms-vscode-remote",
"version": "0.51.0"
},
{
"metadata": {
"id": "f0c5397b-d357-4197-99f0-cb4202f22818",
"publisherId": "ms-vscode-remote.remote-wsl",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-wsl",
"publisher": "ms-vscode-remote",
"version": "0.44.4"
},
{
"metadata": {
"id": "484d897a-6711-403c-ab54-a96f12be5833",
"publisherId": "Equinusocio.vsc-community-material-theme",
"publisherDisplayName": "Equinusocio"
},
"name": "vsc-community-material-theme",
"publisher": "Equinusocio",
"version": "1.4.2"
},
{
"metadata": {
"id": "dffaf5a1-2219-434b-9d87-cb586fd59260",
"publisherId": "Equinusocio.vsc-material-theme",
"publisherDisplayName": "Equinusocio"
},
"name": "vsc-material-theme",
"publisher": "Equinusocio",
"version": "32.8.0"
},
{
"metadata": {
"id": "8c609a4f-268a-41fb-8fe6-b6fcd95e8113",
"publisherId": "equinusocio.vsc-material-theme-icons",
"publisherDisplayName": "equinusocio"
},
"name": "vsc-material-theme-icons",
"publisher": "equinusocio",
"version": "1.2.0"
},
{
"metadata": {
"id": "ce49f801-147f-49b8-9b1b-a8ee3dff91ef",
"publisherId": "slevesque.vscode-autohotkey",
"publisherDisplayName": "slevesque"
},
"name": "vscode-autohotkey",
"publisher": "slevesque",
"version": "0.2.2"
}
]
{"previous":{"extension":"1.24.0","vscode":"1.46.0"},"current":{"extension":"1.25.0","vscode":"1.47.2"},"apiAvailable":true,"queue":[]}
// Empty
[
{
"key": "ctrl+alt+r",
"command": "workbench.action.tasks.runTask"
},
{
"key": "ctrl+k ctrl+shift+-",
"command": "extension.changeCase.snake"
}
]
{
// "terminal.integrated.shell.windows": "C:\\windows\\Sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
"terminal.integrated.shell.windows": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
"editor.fontFamily": "Fira Code",
"terminal.integrated.fontFamily": "monospace",
"editor.fontLigatures": true,
"[typescript]": {
"editor.formatOnSave": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"npm.enableScriptExplorer": true,
"workbench.colorTheme": "Material Theme High Contrast",
"jest.enableInlineErrorMessages": false,
// "jest.pathToJest": "ng test material-uishared",
"jest.autoEnable": false,
"window.zoomLevel": 0,
"[markdown]": {
"editor.fontLigatures": true,
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 72,
"editor.lineNumbers": "off",
"editor.quickSuggestions": false,
},
"editor.accessibilitySupport": "off",
"angularConsole.useNVM": false,
"task.slowProviderWarning": [
"npm"
],
"cSpell.userWords": [
"Bland's",
"Holtzblatt",
"Riesbeck's",
"Strategyzer",
"ashesi",
"esnext",
"fishbourne's",
"phpunit",
"roadmap",
"storyboarding",
"subcollection",
"timeframe",
"timeframes",
"tradeshow",
"twarren",
"venturewell"
],
"cSpell.enabledLanguageIds": [
"asciidoc",
"c",
"cpp",
"csharp",
"css",
"git-commit",
"go",
"handlebars",
"haskell",
"html",
"jade",
"java",
"javascript",
"javascriptreact",
"json",
"jsonc",
"latex",
"less",
"markdown",
"php",
"plaintext",
"python",
"pug",
"restructuredtext",
"rust",
"scala",
"scss",
"text",
"typescriptreact",
"yaml",
"yml"
],
"sync.autoUpload": true,
"sync.gist": "71f1c2b7b439c6523cc543edab030842",
"terminal.external.windowsExec": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
"remote.SSH.remotePlatform": {
"40.78.89.174": "linux",
"137.135.49.203": "linux"
},
"php.validate.run": "onType",
"php.suggest.basic": false,
}
{
// Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"ng-if div async": {
"prefix": "ng-if-async",
"body": ["<div *ngIf=\"('$1' | async) as $2 \" >", "$3", "</div>"],
"description": "Create a div under an unwrapped observable"
},
"mat-input field": {
"prefix": "mat-create-input",
"body": [
"<mat-form-field>",
"<input matInput placeholder=\"$1\" formControlName=\"$2\">",
"</mat-form-field>"
],
"description": "create a basic form input field"
},
"mat-card-full": {
"prefix": "mat-create-card",
"body": [
"<mat-card>",
"<mat-card-header>",
"<mat-card-title>$1</mat-card-title>",
"<mat-card-subtitle>$2</mat-card-subtitle>",
"</mat-card-header>",
"$3",
"<mat-card-actions>$4</mat-card-actions>",
"</mat-card>"
],
"description": "create a complete material card with all subfields"
},
"mat-select ng-for": {
"prefix": "mat-create-select-for",
"body": [
"<mat-form-field>",
"<mat-label>$1</mat-label>",
"<mat-select>",
"<mat-option *ngFor=\"let $2 of $3\" [value]=\"$2.$4\">",
"{{$2.$5}}",
"</mat-option>",
"</mat-select>",
"</mat-form-field>"
],
"description": "create a complete material card with all subfields"
},
"mat button": {
"prefix": "mat-create-button",
"body": [
"<button mat-${type:button|raised-button|flat-button|stroked-button|icon-button|fab|min-fab color=\"${color:primary|accent|warn}\" ${event:(click)}=\"\">",
"$3",
"</button>"
],
"description": "create a material button"
},
"mat-dialog-full": {
"prefix": "mat-dialog-full",
"description": "A full template for a material dialog",
"body": [
"<h1 mat-dialog-title>$1</h1>",
"<div mat-dialog-content>",
"$2",
"</div>",
"<div mat-dialog-actions>",
"<button mat-button (click)=\"onNoClick()\">Cancel</button>",
"<button mat-button [mat-dialog-close]=\"$3\" cdkFocusInitial>Ok</button>",
"</div>"
]
}
}
{
// Place your snippets for markdown here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Image in Assets": {
"prefix": "img",
"body": "![$alttext]({{ site.baseurl }}/images/$image\"$title\")",
"description": "Insert an image in the images file",
}
}
{
// Place your snippets for ng-template here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"ng-if div async": {
"prefix": "ng-if-async",
"body": ["<div *ngIf=\"('$1' | async) as $2 \" >", "$3", "</div>"],
"description": "Create a div under an unwrapped observable"
},
"mat-input field": {
"prefix": "mat-create-input",
"body": [
"<mat-form-field>",
"<input matInput placeholder=\"$1\" [formControl]=\"$2\">",
"</mat-form-field>"
],
"description": "create a basic form input field"
},
"mat button": {
"prefix": "mat-create-button",
"body": [
"<button mat-${type:button|raised-button|flat-button|stroked-button|icon-button|fab|min-fab color=\"${color:primary|accent|warn} ${event:(click)>",
"$3",
"</button>"
],
"description": "create a material button"
},
"mat-dialog-full": {
"prefix": "mat-dialog-full",
"description": "A full template for a material dialog",
"body": [
"<h1 mat-dialog-title>$1</h1>",
"<div mat-dialog-content>",
"$2",
"</div>",
"<div mat-dialog-actions>",
"<button mat-button (click)=\"onNoClick()\">Cancel</button>",
"<button mat-button [mat-dialog-close]=\"$3\" cdkFocusInitial>Ok</button>",
"</div>"
]
}
}
{
"constructor" : {
"prefix": "__c",
"body": [
"public function __construct($1) {",
"\t$0",
"}"
],
"description": "create constructor function"
},
"PHP public function " : {
"prefix": "pf",
"body": [
"public function $1($2) {",
"\t$0",
"}"
],
"description": "public function member"
},
"PHP private function " : {
"prefix": "pr",
"body": [
"private function $1($2) {",
"\t$0",
"}"
],
"description": "private function member"
},
"PHP protected function " : {
"prefix": "pr",
"body": [
"protected function $1($2) {",
"\t$0",
"}"
],
"description": "protected function member"
},
"PHP Unit Test Class" : {
"prefix": "pu-c",
"body": [
"use PHPUNIT\\Framework\\TestCase;",
"include_once \"$1.php\";",
"class $1Test extends TestCase {",
"\tpublic function testCanCreateInstanceOf$1(){",
"\t\t\\$test$1=new $1();",
"\t\t\\$this->assertInstanceOf($1::class,\\$test$1);",
"\t}",
"\t$0",
"}"
],
"description": "test case class"
},
"PHP Unit Test Function" : {
"prefix": "pu-t",
"body": [
"public function test$1() {",
"\t$0",
"}"
],
"description": "php test case function"
},
"PHP Unit Test Equals Assert Function" : {
"prefix": "pu-te",
"body": [
"public function test$1() {",
"\t$3=$0",
"\\$this->assertEquals(${2:\\$expected},${3:\\$actual});",
"}"
],
"description": "test case with AssertEquals"
},
"PHP Unit Test Truethy Assert Function" : {
"prefix": "pu-tt",
"body": [
"public function test$1() {",
"\t$3=$0",
"\\$this->assertTrue(${2:\\$booleanExp},\"$1 ${3:\\$truemessage}\");",
"}"
],
"description": "test case with AssertTrue"
},
// Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
}
{
/*
// Place your snippets for TypeScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
"import (typescript lint)": {
"prefix": "import",
"body": "import { ${2:Reference} } from '${1:path}';",
"description": "lint compatible import"
},
"firebase onCall functions" : {
"prefix": "onCall",
"description": "create a firebase onCall function declration (async)",
"body": [
"export const ${1:name} = functions.https.onCall(async (data: ${2:dataInterface}, context) =>{",
"if(data.${3:dataExist}) {",
"try {",
"$0",
"} catch(error) {",
"console.log(\"error in oncall function \");",
"console.log(error);",
"}",
"} else {",
"return \"no valid data passed\"",
"}});"
]
},
"firebase firestore onWrite function": {
"prefix": "onWrite",
"description": "create a firebase onWrite function for firestore",
"body": [
"export const ${1:name} = functions.firestore",
".document(\"${2:path}\")",
"onwrite(async event =>{",
"try {",
"$0",
"} catch(error) {",
"console.log(\"error in onwrite firestore function \");",
"console.log(error);",
"}",
"});"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment