From 4bd2ce595ddf33de33a997caf664f303a84e0f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 12 Aug 2022 10:39:37 +0200 Subject: [PATCH] chore(hub): provide VS Code config --- .gitignore | 1 + .vscode/launch.json | 18 ++++++++++++++++++ CONTRIBUTING.md | 27 ++++----------------------- 3 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.gitignore b/.gitignore index c7996283..8fcc483e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ __pycache__ dist /caddy/caddy /caddy/mercure/mercure +/caddy/mercure/__debug_bin /cmd/mercure/mercure /certs /spec/mercure.html diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..9bac071f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Launch the hub", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceFolder}/caddy/mercure", + "env": { + "MERCURE_PUBLISHER_JWT_KEY": "!ChangeMe!", + "MERCURE_SUBSCRIBER_JWT_KEY": "!ChangeMe!", + "MERCURE_EXTRA_DIRECTIVES": "anonymous" + }, + "args": ["run", "-config", "../../Caddyfile.dev"] + } + ] +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a8eaa038..9fcbb76d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -67,29 +67,10 @@ When you send a PR, make sure that: * You make the PR on the same branch you based your changes on. If you see commits that you did not make in your PR, you're doing it wrong. -### Configuring VSCode - -`.vscode/launch.json`: - -```json -{ - "version": "0.2.0", - "configurations": [ - { - "name": "Launch the hub", - "type": "go", - "request": "launch", - "mode": "auto", - "program": "${workspaceFolder}", - "env": { - "MERCURE_PUBLISHER_JWT_KEY": "!ChangeMe!", - "MERCURE_SUBSCRIBER_JWT_KEY": "!ChangeMe!" - }, - "args": ["run", "-config", "Caddyfile.dev"] - } - ] -} -``` +### Configuring Visual Studio Code + +A configuration for VSCode is provided in the `.vscode/` directory of the repository. +It is automatically loaded by VS Code. ### Finding Deadlocks