Skip to content

Commit 118b99f

Browse files
committed
add comments in launch.json
1 parent 27fb762 commit 118b99f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.vscode/launch.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
// Use IntelliSense to learn about possible Node.js debug attributes.
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
// For available variables, visit: https://code.visualstudio.com/docs/editor/variables-reference
56
"version": "0.2.0",
67
"inputs": [
78
{
9+
// Get the name of the package containing the file in the active tab.
810
"id": "getPackageName",
911
"type": "command",
1012
"command": "shellCommand.execute",
1113
"args": {
14+
// Get the current file's absolute path, chop off everything up to and including the repo's `packages`
15+
// directory, then split on `/` and take the first entry
1216
"command": "echo '${file}' | sed s/'.*sentry-javascript\\/packages\\/'// | grep --extended-regexp --only-matching --max-count 1 '[^\\/]+' | head -1",
1317
"cwd": "${workspaceFolder}",
1418
// normally `input` commands bring up a selector for the user, but given that there should only be one

0 commit comments

Comments
 (0)