From 97258ca1ebe1dc5de583031dde02413949d64b4c Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Mon, 14 Oct 2024 09:37:04 -0400 Subject: [PATCH] Chore: vscode devenv cleanup (#94290) --- .github/CODEOWNERS | 1 - .vscode/launch.json | 7 ++++++- devenv/README.md | 2 +- devenv/vscode/launch.json | 21 --------------------- 4 files changed, 7 insertions(+), 24 deletions(-) delete mode 100644 devenv/vscode/launch.json diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index d9c88232b09..bfecf44889b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -241,7 +241,6 @@ /devenv/docker/rpmtest/ @grafana/grafana-backend-services-squad /devenv/jsonnet/ @grafana/dataviz-squad /devenv/local-npm/ @grafana/frontend-ops -/devenv/vscode/ @grafana/frontend-ops /devenv/setup.sh @grafana/grafana-backend-services-squad /devenv/plugins.yaml @grafana/plugins-platform-frontend diff --git a/.vscode/launch.json b/.vscode/launch.json index 5cfa698f5f0..28499f1fb2e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,12 @@ "program": "${workspaceFolder}/pkg/cmd/grafana/", "env": {}, "cwd": "${workspaceFolder}", - "args": ["server", "--homepath", "${workspaceFolder}", "--packaging", "dev", "cfg:app_mode=development"] + "args": [ + "server", + "--homepath", "${workspaceFolder}", + "--packaging", "dev", + "cfg:app_mode=development", + ] }, { "name": "Run API Server (testdata)", diff --git a/devenv/README.md b/devenv/README.md index a07506e2516..cc37e031d0a 100644 --- a/devenv/README.md +++ b/devenv/README.md @@ -81,7 +81,7 @@ host = "localhost:1025" You can access the web UI at http://localhost:12080/#/ ## Debugging setup in VS Code -An example of launch.json is provided in `devenv/vscode/launch.json`. It basically does what Makefile and .bra.toml do. The 'program' field is set to the folder name so VS Code loads all *.go files in it instead of just main.go. +An example of launch.json is provided in `.vscode/launch.json`. It basically does what Makefile and .bra.toml do. The 'program' field is set to the folder name so VS Code loads all *.go files in it instead of just main.go. ## Troubleshooting diff --git a/devenv/vscode/launch.json b/devenv/vscode/launch.json deleted file mode 100644 index d988713128a..00000000000 --- a/devenv/vscode/launch.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - // 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": "grafana-server", - "type": "go", - "request": "launch", - "mode": "auto", - "program": "${workspaceFolder}/pkg/cmd/grafana-server", - "env": {}, - "args": [ - "--homepath=${workspaceFolder}", - "--packaging=dev", - "cfg:app_mode=development", - ] - } - ] -} \ No newline at end of file