Skip to content

Commit 51559e6

Browse files
authored
Update gitignore with VSCode and MacOS (#69)
1 parent 3c8ebb7 commit 51559e6

File tree

2 files changed

+137
-5
lines changed

2 files changed

+137
-5
lines changed

.gitignore

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,49 @@ go.work
2222
go.work.sum
2323

2424
# env file
25-
.env
26-
.envrc
25+
.env*
26+
27+
# JetBrains
2728
.idea/
29+
30+
# Left over files from tests
2831
coverage.txt
29-
.DS_Store
3032
.ci/ubuntu/log/rabbitmq.log
3133

3234
# Visual Studio Code
3335
.vscode/*
34-
!.vscode/settings.json
36+
# Settings file has paths that are specific to the user, so we don't want to commit it
37+
# !.vscode/settings.json
3538
!.vscode/tasks.json
3639
!.vscode/launch.json
3740
!.vscode/extensions.json
3841
!.vscode/*.code-snippets
3942
!*.code-workspace
4043

4144
# Built Visual Studio Code Extensions
42-
*.vsix
45+
*.vsix
46+
47+
# General
48+
.DS_Store
49+
__MACOSX/
50+
.AppleDouble
51+
.LSOverride
52+
53+
# Thumbnails
54+
._*
55+
56+
# Files that might appear in the root of a volume
57+
.DocumentRevisions-V100
58+
.fseventsd
59+
.Spotlight-V100
60+
.TemporaryItems
61+
.Trashes
62+
.VolumeIcon.icns
63+
.com.apple.timemachine.donotpresent
64+
65+
# Directories potentially created on remote AFP share
66+
.AppleDB
67+
.AppleDesktop
68+
Network Trash Folder
69+
Temporary Items
70+
.apdisk

.vscode/launch.json

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Debug Current Go File",
9+
"type": "go",
10+
"request": "launch",
11+
"mode": "auto",
12+
"program": "${file}"
13+
},
14+
{
15+
"name": "Debug Package (Current Directory)",
16+
"type": "go",
17+
"request": "launch",
18+
"mode": "debug",
19+
"program": "${fileDirname}"
20+
},
21+
{
22+
"name": "Debug Ginkgo Tests (pkg/rabbitmqamqp)",
23+
"type": "go",
24+
"request": "launch",
25+
"mode": "test",
26+
"program": "${workspaceFolder}/pkg/rabbitmqamqp",
27+
"args": [
28+
"-ginkgo.v",
29+
"-ginkgo.progress",
30+
"-ginkgo.trace"
31+
],
32+
"showLog": true
33+
},
34+
{
35+
"name": "Debug Ginkgo Test (Focus)",
36+
"type": "go",
37+
"request": "launch",
38+
"mode": "test",
39+
"program": "${fileDirname}",
40+
"args": [
41+
"-ginkgo.v",
42+
"-ginkgo.focus=${input:focusSpec}",
43+
"-ginkgo.trace"
44+
],
45+
"showLog": true
46+
},
47+
{
48+
"name": "Debug All Ginkgo Tests",
49+
"type": "go",
50+
"request": "launch",
51+
"mode": "test",
52+
"program": "${workspaceFolder}/pkg/rabbitmqamqp",
53+
"args": [
54+
"-ginkgo.v",
55+
"-ginkgo.randomize-all",
56+
"-ginkgo.randomize-suites",
57+
"-ginkgo.trace"
58+
],
59+
"showLog": true
60+
},
61+
{
62+
"name": "Debug Getting Started Example",
63+
"type": "go",
64+
"request": "launch",
65+
"mode": "debug",
66+
"program": "${workspaceFolder}/docs/examples/getting_started/main.go"
67+
},
68+
{
69+
"name": "Debug RPC Echo Server Example",
70+
"type": "go",
71+
"request": "launch",
72+
"mode": "debug",
73+
"program": "${workspaceFolder}/docs/examples/rpc_echo_server/main.go"
74+
},
75+
{
76+
"name": "Attach to Process",
77+
"type": "go",
78+
"request": "attach",
79+
"mode": "local",
80+
"processId": "${command:pickProcess}"
81+
},
82+
{
83+
"name": "Debug Ginkgo Test (Current File)",
84+
"type": "go",
85+
"request": "launch",
86+
"mode": "test",
87+
"program": "${fileDirname}",
88+
"args": [
89+
"-ginkgo.v",
90+
"-ginkgo.trace"
91+
],
92+
"showLog": true,
93+
"buildFlags": "-tags=integration"
94+
}
95+
],
96+
"inputs": [
97+
{
98+
"id": "focusSpec",
99+
"type": "promptString",
100+
"description": "Enter the test spec to focus on (regex pattern)",
101+
"default": ""
102+
}
103+
]
104+
}

0 commit comments

Comments
 (0)