From 52fd26f4aacc379e6d603bde40e0c4c1c7bf99a1 Mon Sep 17 00:00:00 2001 From: Andrew Koltyakov Date: Tue, 31 Oct 2023 13:05:48 -0500 Subject: [PATCH] VSCode: Debug launch config --- .vscode/launch.json | 17 +++++++++++++++++ .vscode/settings.json | 15 ++++++++++++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..3343fca --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Debug Launch", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "main.go", + "env": {}, + "args": ["serve"] + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 211b408..9252744 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,11 +5,20 @@ "editor.renderWhitespace": "all", "window.zoomLevel": 0, "go.formatTool": "goimports", - "go.testFlags": ["-count=1", "-v"], - "go.formatFlags": ["-s", "-w"], + "go.testFlags": [ + "-count=1", + "-v" + ], + "go.formatFlags": [ + "-s", + "-w" + ], "go.lintOnSave": "file", "go.lintTool": "golangci-lint", - "go.lintFlags": ["--fast", "--auto-fix"], + "go.lintFlags": [ + "--fast", + "--auto-fix" + ], "files.exclude": { "**/*_test.go": false, "**/*_gen.go": true,