Last active
July 23, 2020 19:06
-
-
Save sesteva/531fda39c343dfdb7b4038a496032988 to your computer and use it in GitHub Desktop.
sync vscode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-07-23T19:05:59.044Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"metadata": { | |
"id": "d10af6bf-270f-4cf0-b94b-1bea4bda1e2e", | |
"publisherId": "nrwl.angular-console", | |
"publisherDisplayName": "nrwl" | |
}, | |
"name": "angular-console", | |
"publisher": "nrwl", | |
"version": "12.0.0" | |
}, | |
{ | |
"metadata": { | |
"id": "15deda26-afe0-4758-8a3d-cd0aebcbd04f", | |
"publisherId": "johnpapa.angular-essentials", | |
"publisherDisplayName": "johnpapa" | |
}, | |
"name": "angular-essentials", | |
"publisher": "johnpapa", | |
"version": "9.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "214cbfb9-7c06-4467-bad4-357ae83eb587", | |
"publisherId": "johnpapa.Angular2", | |
"publisherDisplayName": "johnpapa" | |
}, | |
"name": "Angular2", | |
"publisher": "johnpapa", | |
"version": "9.1.2" | |
}, | |
{ | |
"metadata": { | |
"id": "c1309cc2-f420-46a3-b2be-ca04f4d9e51b", | |
"publisherId": "asciidoctor.asciidoctor-vscode", | |
"publisherDisplayName": "asciidoctor" | |
}, | |
"name": "asciidoctor-vscode", | |
"publisher": "asciidoctor", | |
"version": "2.8.3" | |
}, | |
{ | |
"metadata": { | |
"id": "9e919931-6833-483d-a7b9-966f8f974227", | |
"publisherId": "joaompinto.asciidoctor-vscode", | |
"publisherDisplayName": "joaompinto" | |
}, | |
"name": "asciidoctor-vscode", | |
"publisher": "joaompinto", | |
"version": "2.8.0" | |
}, | |
{ | |
"metadata": { | |
"id": "70378119-1d85-4935-9733-0298c7a369a2", | |
"publisherId": "steoates.autoimport", | |
"publisherDisplayName": "steoates" | |
}, | |
"name": "autoimport", | |
"publisher": "steoates", | |
"version": "1.5.3" | |
}, | |
{ | |
"metadata": { | |
"id": "85f7dfdc-cfff-49f3-8397-64792256a42f", | |
"publisherId": "pradiphudekar.cf-templates", | |
"publisherDisplayName": "pradiphudekar" | |
}, | |
"name": "cf-templates", | |
"publisher": "pradiphudekar", | |
"version": "0.1.1" | |
}, | |
{ | |
"metadata": { | |
"id": "565a34b6-cad4-4905-ad88-266fe75d8036", | |
"publisherId": "aws-scripting-guy.cform", | |
"publisherDisplayName": "aws-scripting-guy" | |
}, | |
"name": "cform", | |
"publisher": "aws-scripting-guy", | |
"version": "0.0.24" | |
}, | |
{ | |
"metadata": { | |
"id": "58b2ca33-37f6-44b0-a759-b6208ff244b8", | |
"publisherId": "dsteenman.cloudformation-yaml-snippets", | |
"publisherDisplayName": "dsteenman" | |
}, | |
"name": "cloudformation-yaml-snippets", | |
"publisher": "dsteenman", | |
"version": "2.15.0" | |
}, | |
{ | |
"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": "121396ad-85a1-45ec-9fd1-d95028a847f5", | |
"publisherId": "naumovs.color-highlight", | |
"publisherDisplayName": "naumovs" | |
}, | |
"name": "color-highlight", | |
"publisher": "naumovs", | |
"version": "2.3.0" | |
}, | |
{ | |
"metadata": { | |
"id": "1ec62ca5-d7f9-4ddb-a882-e8d018c0aefd", | |
"publisherId": "msjsdiag.debugger-for-chrome", | |
"publisherDisplayName": "msjsdiag" | |
}, | |
"name": "debugger-for-chrome", | |
"publisher": "msjsdiag", | |
"version": "4.12.9" | |
}, | |
{ | |
"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": "532533c9-a894-4a58-9eee-bbfbe7c06f71", | |
"publisherId": "mikestead.dotenv", | |
"publisherDisplayName": "mikestead" | |
}, | |
"name": "dotenv", | |
"publisher": "mikestead", | |
"version": "1.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588", | |
"publisherId": "EditorConfig.EditorConfig", | |
"publisherDisplayName": "EditorConfig" | |
}, | |
"name": "EditorConfig", | |
"publisher": "EditorConfig", | |
"version": "0.15.1" | |
}, | |
{ | |
"metadata": { | |
"id": "4de763bd-505d-4978-9575-2b7696ecf94e", | |
"publisherId": "eamodio.gitlens", | |
"publisherDisplayName": "eamodio" | |
}, | |
"name": "gitlens", | |
"publisher": "eamodio", | |
"version": "10.2.2" | |
}, | |
{ | |
"metadata": { | |
"id": "aae00486-7e92-42b3-91b0-2b419e4f3875", | |
"publisherId": "vincaslt.highlight-matching-tag", | |
"publisherDisplayName": "vincaslt" | |
}, | |
"name": "highlight-matching-tag", | |
"publisher": "vincaslt", | |
"version": "0.9.9" | |
}, | |
{ | |
"metadata": { | |
"id": "7b71fc1b-190d-4f7d-95d1-93e422649b0a", | |
"publisherId": "Zignd.html-css-class-completion", | |
"publisherDisplayName": "Zignd" | |
}, | |
"name": "html-css-class-completion", | |
"publisher": "Zignd", | |
"version": "1.19.0" | |
}, | |
{ | |
"metadata": { | |
"id": "be992f3f-9f22-4b66-a1d2-ecad04c28a28", | |
"publisherId": "abusaidm.html-snippets", | |
"publisherDisplayName": "abusaidm" | |
}, | |
"name": "html-snippets", | |
"publisher": "abusaidm", | |
"version": "0.2.1" | |
}, | |
{ | |
"metadata": { | |
"id": "eaa2127d-cb69-4ab9-8505-a60c9ee5f28b", | |
"publisherId": "oderwat.indent-rainbow", | |
"publisherDisplayName": "oderwat" | |
}, | |
"name": "indent-rainbow", | |
"publisher": "oderwat", | |
"version": "7.4.0" | |
}, | |
{ | |
"metadata": { | |
"id": "8ee0c715-ca9e-4ce2-8841-5faa5e0f3255", | |
"publisherId": "andys8.jest-snippets", | |
"publisherDisplayName": "andys8" | |
}, | |
"name": "jest-snippets", | |
"publisher": "andys8", | |
"version": "1.8.0" | |
}, | |
{ | |
"metadata": { | |
"id": "d697a7e8-00fa-4039-9067-4b69a9a90f6e", | |
"publisherId": "kiteco.kite", | |
"publisherDisplayName": "kiteco" | |
}, | |
"name": "kite", | |
"publisher": "kiteco", | |
"version": "0.121.0" | |
}, | |
{ | |
"metadata": { | |
"id": "77f00b61-498f-4cf7-b893-c02e01380338", | |
"publisherId": "raymondcamden.languagetool", | |
"publisherDisplayName": "raymondcamden" | |
}, | |
"name": "languagetool", | |
"publisher": "raymondcamden", | |
"version": "1.0.1" | |
}, | |
{ | |
"metadata": { | |
"id": "1785cdb5-4792-4227-819e-b78d537688b5", | |
"publisherId": "bierner.lit-html", | |
"publisherDisplayName": "bierner" | |
}, | |
"name": "lit-html", | |
"publisher": "bierner", | |
"version": "1.11.1" | |
}, | |
{ | |
"metadata": { | |
"id": "5db78037-f674-459f-a236-db622c427c5b", | |
"publisherId": "PKief.material-icon-theme", | |
"publisherDisplayName": "PKief" | |
}, | |
"name": "material-icon-theme", | |
"publisher": "PKief", | |
"version": "4.2.0" | |
}, | |
{ | |
"metadata": { | |
"id": "d27203d5-48e4-451c-9cad-b6e6bca25f48", | |
"publisherId": "foxundermoon.next-js", | |
"publisherDisplayName": "foxundermoon" | |
}, | |
"name": "next-js", | |
"publisher": "foxundermoon", | |
"version": "0.0.2" | |
}, | |
{ | |
"metadata": { | |
"id": "a92d457e-6f3f-4167-8087-1a54e1b6e00e", | |
"publisherId": "Angular.ng-template", | |
"publisherDisplayName": "Angular" | |
}, | |
"name": "ng-template", | |
"publisher": "Angular", | |
"version": "0.1000.4" | |
}, | |
{ | |
"metadata": { | |
"id": "dff6b801-247e-40e9-82e8-8c9b1d19d1b8", | |
"publisherId": "christian-kohler.npm-intellisense", | |
"publisherDisplayName": "christian-kohler" | |
}, | |
"name": "npm-intellisense", | |
"publisher": "christian-kohler", | |
"version": "1.3.0" | |
}, | |
{ | |
"metadata": { | |
"id": "a41c1549-4053-44d4-bf30-60fc809b4a86", | |
"publisherId": "christian-kohler.path-intellisense", | |
"publisherDisplayName": "christian-kohler" | |
}, | |
"name": "path-intellisense", | |
"publisher": "christian-kohler", | |
"version": "2.2.1" | |
}, | |
{ | |
"metadata": { | |
"id": "ef75d802-7042-42e2-93d9-a69092d66bd8", | |
"publisherId": "wuyujiesong.phaser-snippets", | |
"publisherDisplayName": "wuyujiesong" | |
}, | |
"name": "phaser-snippets", | |
"publisher": "wuyujiesong", | |
"version": "0.0.6" | |
}, | |
{ | |
"metadata": { | |
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90", | |
"publisherId": "esbenp.prettier-vscode", | |
"publisherDisplayName": "esbenp" | |
}, | |
"name": "prettier-vscode", | |
"publisher": "esbenp", | |
"version": "5.1.3" | |
}, | |
{ | |
"metadata": { | |
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5", | |
"publisherId": "ms-python.python", | |
"publisherDisplayName": "ms-python" | |
}, | |
"name": "python", | |
"publisher": "ms-python", | |
"version": "2020.7.96456" | |
}, | |
{ | |
"metadata": { | |
"id": "797a79de-a0fd-4349-9034-bec47be9a941", | |
"publisherId": "2gua.rainbow-brackets", | |
"publisherDisplayName": "2gua" | |
}, | |
"name": "rainbow-brackets", | |
"publisher": "2gua", | |
"version": "0.0.6" | |
}, | |
{ | |
"metadata": { | |
"id": "c807e072-5951-4a01-9542-450f946c7ec1", | |
"publisherId": "xabikos.ReactSnippets", | |
"publisherDisplayName": "xabikos" | |
}, | |
"name": "ReactSnippets", | |
"publisher": "xabikos", | |
"version": "2.4.0" | |
}, | |
{ | |
"metadata": { | |
"id": "376bc29a-6eab-440e-a6c5-a6f4972e2ace", | |
"publisherId": "ThreadHeap.serverless-ide-vscode", | |
"publisherDisplayName": "ThreadHeap" | |
}, | |
"name": "serverless-ide-vscode", | |
"publisher": "ThreadHeap", | |
"version": "0.5.24" | |
}, | |
{ | |
"metadata": { | |
"id": "00e3faf8-4f2d-4447-9290-35023f8e7d83", | |
"publisherId": "vincentkos.snippet-creator", | |
"publisherDisplayName": "vincentkos" | |
}, | |
"name": "snippet-creator", | |
"publisher": "vincentkos", | |
"version": "1.1.0" | |
}, | |
{ | |
"metadata": { | |
"id": "c5463f77-75d9-4a25-8cc4-d8541a461285", | |
"publisherId": "svelte.svelte-vscode", | |
"publisherDisplayName": "svelte" | |
}, | |
"name": "svelte-vscode", | |
"publisher": "svelte", | |
"version": "101.3.0" | |
}, | |
{ | |
"metadata": { | |
"id": "0d1f00cb-3a40-4ba2-968d-929b45f18156", | |
"publisherId": "msveden.teamcity-checker", | |
"publisherDisplayName": "msveden" | |
}, | |
"name": "teamcity-checker", | |
"publisher": "msveden", | |
"version": "0.0.4" | |
}, | |
{ | |
"metadata": { | |
"id": "186ace18-2b44-490d-863e-0bd29b229a27", | |
"publisherId": "formulahendry.terminal", | |
"publisherDisplayName": "formulahendry" | |
}, | |
"name": "terminal", | |
"publisher": "formulahendry", | |
"version": "0.0.10" | |
}, | |
{ | |
"metadata": { | |
"id": "261cac81-cd7b-4555-bb41-0c2d2bcd3e70", | |
"publisherId": "Gruntfuggly.todo-tree", | |
"publisherDisplayName": "Gruntfuggly" | |
}, | |
"name": "todo-tree", | |
"publisher": "Gruntfuggly", | |
"version": "0.0.178" | |
}, | |
{ | |
"metadata": { | |
"id": "de44183f-5377-4ceb-ac15-79364a30070c", | |
"publisherId": "apollographql.vscode-apollo", | |
"publisherDisplayName": "apollographql" | |
}, | |
"name": "vscode-apollo", | |
"publisher": "apollographql", | |
"version": "1.16.6" | |
}, | |
{ | |
"metadata": { | |
"id": "d7b592dd-41c9-4f2b-acf3-055ae65e55c6", | |
"publisherId": "dzannotti.vscode-babel-coloring", | |
"publisherDisplayName": "dzannotti" | |
}, | |
"name": "vscode-babel-coloring", | |
"publisher": "dzannotti", | |
"version": "0.0.4" | |
}, | |
{ | |
"metadata": { | |
"id": "126e4983-78cb-433f-a67c-9b07c39c7802", | |
"publisherId": "auchenberg.vscode-browser-preview", | |
"publisherDisplayName": "auchenberg" | |
}, | |
"name": "vscode-browser-preview", | |
"publisher": "auchenberg", | |
"version": "0.6.7" | |
}, | |
{ | |
"metadata": { | |
"id": "0afa1e21-b4ab-4c87-8f73-31374c4229c0", | |
"publisherId": "kddejong.vscode-cfn-lint", | |
"publisherDisplayName": "kddejong" | |
}, | |
"name": "vscode-cfn-lint", | |
"publisher": "kddejong", | |
"version": "0.14.0" | |
}, | |
{ | |
"metadata": { | |
"id": "12c0e171-0d89-44de-b724-a9058cc5c7fe", | |
"publisherId": "axetroy.vscode-deno", | |
"publisherDisplayName": "axetroy" | |
}, | |
"name": "vscode-deno", | |
"publisher": "axetroy", | |
"version": "4.0.0" | |
}, | |
{ | |
"metadata": { | |
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f", | |
"publisherId": "ms-azuretools.vscode-docker", | |
"publisherDisplayName": "ms-azuretools" | |
}, | |
"name": "vscode-docker", | |
"publisher": "ms-azuretools", | |
"version": "1.4.1" | |
}, | |
{ | |
"metadata": { | |
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a", | |
"publisherId": "dbaeumer.vscode-eslint", | |
"publisherDisplayName": "dbaeumer" | |
}, | |
"name": "vscode-eslint", | |
"publisher": "dbaeumer", | |
"version": "2.1.8" | |
}, | |
{ | |
"metadata": { | |
"id": "9ccc1dd7-7ec4-4a46-bd4f-7d7b8b9d322a", | |
"publisherId": "vscode-icons-team.vscode-icons", | |
"publisherDisplayName": "vscode-icons-team" | |
}, | |
"name": "vscode-icons", | |
"publisher": "vscode-icons-team", | |
"version": "10.2.0" | |
}, | |
{ | |
"metadata": { | |
"id": "c46b0018-f317-4b6c-a785-d2039b27338f", | |
"publisherId": "wix.vscode-import-cost", | |
"publisherDisplayName": "wix" | |
}, | |
"name": "vscode-import-cost", | |
"publisher": "wix", | |
"version": "2.12.0" | |
}, | |
{ | |
"metadata": { | |
"id": "b7495032-d1d3-4be2-a2a1-695559fcd3d6", | |
"publisherId": "dbankier.vscode-instant-markdown", | |
"publisherDisplayName": "dbankier" | |
}, | |
"name": "vscode-instant-markdown", | |
"publisher": "dbankier", | |
"version": "1.4.4" | |
}, | |
{ | |
"metadata": { | |
"id": "7997a8ae-1fae-4022-b834-12f6318aeffd", | |
"publisherId": "Orta.vscode-jest", | |
"publisherDisplayName": "Orta" | |
}, | |
"name": "vscode-jest", | |
"publisher": "Orta", | |
"version": "3.2.0" | |
}, | |
{ | |
"metadata": { | |
"id": "13cd6cd6-3da6-4eb8-8d81-b47e6e710e59", | |
"publisherId": "firsttris.vscode-jest-runner", | |
"publisherDisplayName": "firsttris" | |
}, | |
"name": "vscode-jest-runner", | |
"publisher": "firsttris", | |
"version": "0.4.22" | |
}, | |
{ | |
"metadata": { | |
"id": "3bcbb7ae-1eda-4475-a9f4-16ee974eb7a5", | |
"publisherId": "shinhwagk.vscode-note", | |
"publisherDisplayName": "shinhwagk" | |
}, | |
"name": "vscode-note", | |
"publisher": "shinhwagk", | |
"version": "0.9.122" | |
}, | |
{ | |
"metadata": { | |
"id": "ae9e3eb0-3357-4cc0-90ee-598d2d384757", | |
"publisherId": "eg2.vscode-npm-script", | |
"publisherDisplayName": "eg2" | |
}, | |
"name": "vscode-npm-script", | |
"publisher": "eg2", | |
"version": "0.3.12" | |
}, | |
{ | |
"metadata": { | |
"id": "5a7017bf-c571-4d77-b902-6e56b16f539a", | |
"publisherId": "johnpapa.vscode-peacock", | |
"publisherDisplayName": "johnpapa" | |
}, | |
"name": "vscode-peacock", | |
"publisher": "johnpapa", | |
"version": "3.7.2" | |
}, | |
{ | |
"metadata": { | |
"id": "6f5d4f30-67aa-4151-80c0-1bbe8ca5f9db", | |
"publisherId": "cssho.vscode-svgviewer", | |
"publisherDisplayName": "cssho" | |
}, | |
"name": "vscode-svgviewer", | |
"publisher": "cssho", | |
"version": "2.0.0" | |
}, | |
{ | |
"metadata": { | |
"id": "4db62a7c-7d70-419c-96d2-6c3a4dc77ea5", | |
"publisherId": "bradlc.vscode-tailwindcss", | |
"publisherDisplayName": "bradlc" | |
}, | |
"name": "vscode-tailwindcss", | |
"publisher": "bradlc", | |
"version": "0.4.1" | |
}, | |
{ | |
"metadata": { | |
"id": "90a37ca1-92a2-488a-b196-7a8c0b0127ea", | |
"publisherId": "ms-vscode.vscode-typescript-tslint-plugin", | |
"publisherDisplayName": "ms-vscode" | |
}, | |
"name": "vscode-typescript-tslint-plugin", | |
"publisher": "ms-vscode", | |
"version": "1.2.3" | |
}, | |
{ | |
"metadata": { | |
"id": "626a3aa7-e231-4b01-848b-1e01c4572689", | |
"publisherId": "snyk-security.vscode-vuln-cost", | |
"publisherDisplayName": "snyk-security" | |
}, | |
"name": "vscode-vuln-cost", | |
"publisher": "snyk-security", | |
"version": "1.3.6" | |
}, | |
{ | |
"metadata": { | |
"id": "f2fd462f-f1bd-4c62-b54f-59a4e5ffc6a3", | |
"publisherId": "WakaTime.vscode-wakatime", | |
"publisherDisplayName": "WakaTime" | |
}, | |
"name": "vscode-wakatime", | |
"publisher": "WakaTime", | |
"version": "4.0.0" | |
}, | |
{ | |
"metadata": { | |
"id": "2061917f-f76a-458a-8da9-f162de22b97e", | |
"publisherId": "redhat.vscode-yaml", | |
"publisherDisplayName": "redhat" | |
}, | |
"name": "vscode-yaml", | |
"publisher": "redhat", | |
"version": "0.9.1" | |
}, | |
{ | |
"metadata": { | |
"id": "020e14e4-3f0d-41d4-901d-4d28c9775544", | |
"publisherId": "gamunu.vscode-yarn", | |
"publisherDisplayName": "gamunu" | |
}, | |
"name": "vscode-yarn", | |
"publisher": "gamunu", | |
"version": "1.7.0" | |
}, | |
{ | |
"metadata": { | |
"id": "5a6dc0d5-dc02-4121-8e24-cad33a2ff0af", | |
"publisherId": "ms-vsliveshare.vsliveshare", | |
"publisherDisplayName": "ms-vsliveshare" | |
}, | |
"name": "vsliveshare", | |
"publisher": "ms-vsliveshare", | |
"version": "1.0.2478" | |
}, | |
{ | |
"metadata": { | |
"id": "4c808376-20ec-41d4-a934-f7601552c4f1", | |
"publisherId": "jcbuisson.vue", | |
"publisherDisplayName": "jcbuisson" | |
}, | |
"name": "vue", | |
"publisher": "jcbuisson", | |
"version": "0.1.5" | |
}, | |
{ | |
"metadata": { | |
"id": "fd6d3dc6-b307-4589-82a6-78e2afec3d77", | |
"publisherId": "johnpapa.winteriscoming", | |
"publisherDisplayName": "johnpapa" | |
}, | |
"name": "winteriscoming", | |
"publisher": "johnpapa", | |
"version": "1.4.3" | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to overwrite the defaultsauto[] | |
[ | |
{ | |
"key": "shift+cmd+v", | |
"command": "-asciidoc.showPreview", | |
"when": "editorLangId == 'asciidoc'" | |
}, | |
{ | |
"key": "shift+cmd+a", | |
"command": "asciidoc.showPreviewToSide", | |
"when": "editorLangId == 'asciidoc'" | |
}, | |
{ | |
"key": "cmd+k v", | |
"command": "-asciidoc.showPreviewToSide", | |
"when": "editorLangId == 'asciidoc'" | |
}, | |
{ | |
"key": "cmd+m cmd+n", | |
"command": "extension.createSnippet" | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"gitlens.advanced.messages": { | |
"suppressShowKeyBindingsNotice": true | |
}, | |
"terminal.integrated.scrollback": 5000, | |
"window.zoomLevel": 2, | |
"gitlens.historyExplorer.enabled": true, | |
"explorer.confirmDelete": false, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"explorer.confirmDragAndDrop": false, | |
"editor.tabSize": 2, | |
"gitlens.views.fileHistory.enabled": true, | |
"gitlens.views.lineHistory.enabled": true, | |
"files.autoSave": "afterDelay", | |
"[json]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"diffEditor.ignoreTrimWhitespace": true, | |
"vsicons.dontShowNewVersionMessage": true, | |
"todo-tree.highlights.enabled": true, | |
"sync.gist": "531fda39c343dfdb7b4038a496032988", | |
"sync.autoUpload": true, | |
"sync.autoDownload": true, | |
"sync.quietSync": true, | |
"sync.forceUpload": true, | |
"sync.forceDownload": true, | |
"workbench.iconTheme": "vscode-icons", | |
"terminal.integrated.shell.osx": "/bin/zsh", | |
"yaml.customTags": [ | |
"!And", | |
"!And sequence", | |
"!If", | |
"!If sequence", | |
"!Not", | |
"!Not sequence", | |
"!Equals", | |
"!Equals sequence", | |
"!Or", | |
"!Or sequence", | |
"!FindInMap", | |
"!FindInMap sequence", | |
"!Base64", | |
"!Join", | |
"!Join sequence", | |
"!Cidr", | |
"!Ref", | |
"!Sub", | |
"!Sub sequence", | |
"!GetAtt", | |
"!GetAZs", | |
"!ImportValue", | |
"!ImportValue sequence", | |
"!Select", | |
"!Select sequence", | |
"!Split", | |
"!Split sequence" | |
], | |
"yaml.validate": false, | |
"[javascript]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"terminal.integrated.allowChords": false, | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"browser-preview.chromeExecutable": "/Users/user/Library/Application\\ Support/Google/Chrome/Default", | |
"debug.javascript.debugByLinkOptions": null, | |
"editor.formatOnSave": true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"with-apollo": { | |
"prefix": "ts-ql-tutorial", | |
"body": [ | |
"import React from \"react\";", | |
"import Head from \"next/head\";", | |
"import { ApolloProvider } from \"@apollo/react-hooks\";", | |
"import { ApolloClient } from \"apollo-client\";", | |
"import { InMemoryCache } from \"apollo-cache-inmemory\";", | |
"import { HttpLink } from \"apollo-link-http\";", | |
"import fetch from \"isomorphic-unfetch\";", | |
"", | |
"let apolloClient = null;", | |
"", | |
"/**", | |
" * Creates and provides the apolloContext", | |
" * to a next.js PageTree. Use it by wrapping", | |
" * your PageComponent via HOC pattern.", | |
" * @param {Function|Class} PageComponent", | |
" * @param {Object} [config]", | |
" * @param {Boolean} [config.ssr=true]", | |
" */", | |
"export function withApollo(PageComponent, { ssr = true } = {}) {", | |
" const WithApollo = ({ apolloClient, apolloState, ...pageProps }) => {", | |
" const client = apolloClient || initApolloClient(apolloState);", | |
" return (", | |
" <ApolloProvider client={client}>", | |
" <PageComponent {...pageProps} />", | |
" </ApolloProvider>", | |
" );", | |
" };", | |
"", | |
" // Set the correct displayName in development", | |
" if (process.env.NODE_ENV !== \"production\") {", | |
" const displayName =", | |
" PageComponent.displayName || PageComponent.name || \"Component\";", | |
"", | |
" if (displayName === \"App\") {", | |
" console.warn(\"This withApollo HOC only works with PageComponents.\");", | |
" }", | |
"", | |
" WithApollo.displayName = `withApollo(${displayName})`;", | |
" }", | |
"", | |
" if (ssr || PageComponent.getInitialProps) {", | |
" WithApollo.getInitialProps = async ctx => {", | |
" const { AppTree } = ctx;", | |
"", | |
" // Initialize ApolloClient, add it to the ctx object so", | |
" // we can use it in `PageComponent.getInitialProp`.", | |
" const apolloClient = (ctx.apolloClient = initApolloClient());", | |
"", | |
" // Run wrapped getInitialProps methods", | |
" let pageProps = {};", | |
" if (PageComponent.getInitialProps) {", | |
" pageProps = await PageComponent.getInitialProps(ctx);", | |
" }", | |
"", | |
" // Only on the server:", | |
" if (typeof window === \"undefined\") {", | |
" // When redirecting, the response is finished.", | |
" // No point in continuing to render", | |
" if (ctx.res && ctx.res.finished) {", | |
" return pageProps;", | |
" }", | |
"", | |
" // Only if ssr is enabled", | |
" if (ssr) {", | |
" try {", | |
" // Run all GraphQL queries", | |
" const { getDataFromTree } = await import(\"@apollo/react-ssr\");", | |
" await getDataFromTree(", | |
" <AppTree", | |
" pageProps={{", | |
" ...pageProps,", | |
" apolloClient", | |
" }}", | |
" />", | |
" );", | |
" } catch (error) {", | |
" // Prevent Apollo Client GraphQL errors from crashing SSR.", | |
" // Handle them in components via the data.error prop:", | |
" // https://www.apollographql.com/docs/react/api/react-apollo.html#graphql-query-data-error", | |
" console.error(\"Error while running `getDataFromTree`\", error);", | |
" }", | |
"", | |
" // getDataFromTree does not call componentWillUnmount", | |
" // head side effect therefore need to be cleared manually", | |
" Head.rewind();", | |
" }", | |
" }", | |
"", | |
" // Extract query data from the Apollo store", | |
" const apolloState = apolloClient.cache.extract();", | |
"", | |
" return {", | |
" ...pageProps,", | |
" apolloState", | |
" };", | |
" };", | |
" }", | |
"", | |
" return WithApollo;", | |
"}", | |
"", | |
"/**", | |
" * Always creates a new apollo client on the server", | |
" * Creates or reuses apollo client in the browser.", | |
" * @param {Object} initialState", | |
" */", | |
"function initApolloClient(initialState) {", | |
" // Make sure to create a new client for every server-side request so that data", | |
" // isn't shared between connections (which would be bad)", | |
" if (typeof window === \"undefined\") {", | |
" return createApolloClient(initialState);", | |
" }", | |
"", | |
" // Reuse client on the client-side", | |
" if (!apolloClient) {", | |
" apolloClient = createApolloClient(initialState);", | |
" }", | |
"", | |
" return apolloClient;", | |
"}", | |
"", | |
"/**", | |
" * Creates and configures the ApolloClient", | |
" * @param {Object} [initialState={}]", | |
" */", | |
"function createApolloClient(initialState = {}) {", | |
" // Check out https://github.com/zeit/next.js/pull/4611 if you want to use the AWSAppSyncClient", | |
" return new ApolloClient({", | |
" ssrMode: typeof window === \"undefined\", // Disables forceFetch on the server (so queries are only run once)", | |
" link: new HttpLink({", | |
" uri: \"https://75f99.sse.codesandbox.io/\", // Server URL (must be absolute)", | |
" credentials: \"same-origin\", // Additional fetch() options like `credentials` or `headers`", | |
" fetch", | |
" }),", | |
" cache: new InMemoryCache().restore(initialState)", | |
" });", | |
"}", | |
"" | |
], | |
"description": "withApollo" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"package-scripts": { | |
"prefix": "ts-ql-tutorial", | |
"body": [ | |
"\"scripts\": {", | |
" \"dev\": \"next\",", | |
" \"build\": \"next build\",", | |
" \"start\": \"next start\",", | |
" \"transform\": \"graphql-codegen --config codegen.yml\"", | |
" }," | |
], | |
"description": "package-scripts description" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tsconfig": { | |
"prefix": "ts-ql-tutorial", | |
"body": [ | |
"{", | |
" \"compilerOptions\": {", | |
" \"target\": \"es5\",", | |
" \"lib\": [\"dom\", \"dom.iterable\", \"esnext\"],", | |
" \"allowJs\": true,", | |
" \"skipLibCheck\": true,", | |
" \"strict\": true,", | |
" \"forceConsistentCasingInFileNames\": true,", | |
" \"noEmit\": true,", | |
" \"esModuleInterop\": true,", | |
" \"module\": \"esnext\",", | |
" \"moduleResolution\": \"node\",", | |
" \"resolveJsonModule\": true,", | |
" \"isolatedModules\": true,", | |
" \"jsx\": \"preserve\"", | |
" },", | |
" \"exclude\": [\"node_modules\"],", | |
" \"include\": [\"next-env.d.ts\", \"**/*.ts\", \"**/*.tsx\", \"lib/with-apollo.js\"]", | |
"}", | |
"" | |
], | |
"description": "tsconfig description" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"all-posts-query": { | |
"prefix": "ts-ql-tutorial", | |
"body": [ | |
"import { gql } from \"apollo-boost\";", | |
"", | |
"const postsQuery = gql`", | |
" query AllPosts {", | |
" posts {", | |
" id", | |
" title", | |
" }", | |
" }", | |
"`;", | |
"" | |
], | |
"description": "ts-ql-tutorial:all-posts-query description" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"page.index.tsx": { | |
"prefix": "ts-ql-tutorial", | |
"body": [ | |
"import { NextPage } from \"next\";", | |
"import { useAllPostsQuery } from \"../queries/generated\";", | |
"import { withApollo } from \"../lib/with-apollo\";", | |
"", | |
"const Home: NextPage<{ userAgent: string }> = ({ userAgent }) => {", | |
" const { loading, data } = useAllPostsQuery();", | |
" if (loading) return <div>loading</div>;", | |
" return (", | |
" <ul>", | |
" {!loading &&", | |
" data?.posts?.map((p, index) => {", | |
" return <li key={`${index}`}>{p?.title}</li>;", | |
" })}", | |
" </ul>", | |
" );", | |
"};", | |
"", | |
"export default withApollo(Home);", | |
"" | |
], | |
"description": "add page" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"codegen": { | |
"prefix": "ts-ql-tutorial", | |
"body": [ | |
"overwrite: true", | |
"schema: \"graphql-schema.json\"", | |
"documents: \"queries/**/*.ts\"", | |
"generates:", | |
" queries/generated.tsx:", | |
" plugins:", | |
" - typescript", | |
" - typescript-operations", | |
" - typescript-react-apollo", | |
" config:", | |
" withComponent: false", | |
" withHOC: false", | |
" withHooks: true", | |
"" | |
], | |
"description": "codegen description" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment