File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments