Skip to content

Commit

Permalink
chore(hub): provide VS Code config
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Aug 12, 2022
1 parent e16de2e commit 4bd2ce5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,6 +4,7 @@ __pycache__
dist
/caddy/caddy
/caddy/mercure/mercure
/caddy/mercure/__debug_bin
/cmd/mercure/mercure
/certs
/spec/mercure.html
Expand Down
18 changes: 18 additions & 0 deletions .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"]
}
]
}
27 changes: 4 additions & 23 deletions CONTRIBUTING.md
Expand Up @@ -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

Expand Down

0 comments on commit 4bd2ce5

Please sign in to comment.