Chore: vscode devenv cleanup (#94290)

This commit is contained in:
Ryan McKinley 2024-10-14 09:37:04 -04:00 committed by GitHub
parent 517975a4b3
commit 97258ca1eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 24 deletions

1
.github/CODEOWNERS vendored
View File

@ -241,7 +241,6 @@
/devenv/docker/rpmtest/ @grafana/grafana-backend-services-squad /devenv/docker/rpmtest/ @grafana/grafana-backend-services-squad
/devenv/jsonnet/ @grafana/dataviz-squad /devenv/jsonnet/ @grafana/dataviz-squad
/devenv/local-npm/ @grafana/frontend-ops /devenv/local-npm/ @grafana/frontend-ops
/devenv/vscode/ @grafana/frontend-ops
/devenv/setup.sh @grafana/grafana-backend-services-squad /devenv/setup.sh @grafana/grafana-backend-services-squad
/devenv/plugins.yaml @grafana/plugins-platform-frontend /devenv/plugins.yaml @grafana/plugins-platform-frontend

7
.vscode/launch.json vendored
View File

@ -9,7 +9,12 @@
"program": "${workspaceFolder}/pkg/cmd/grafana/", "program": "${workspaceFolder}/pkg/cmd/grafana/",
"env": {}, "env": {},
"cwd": "${workspaceFolder}", "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)", "name": "Run API Server (testdata)",

View File

@ -81,7 +81,7 @@ host = "localhost:1025"
You can access the web UI at http://localhost:12080/#/ You can access the web UI at http://localhost:12080/#/
## Debugging setup in VS Code ## 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 ## Troubleshooting

View File

@ -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",
]
}
]
}