augustocdias / vscode-shell-command

A task helper to use system commands as input
MIT License
53 stars 20 forks source link

Is this working in launch.json #94

Closed Merichbier closed 4 months ago

Merichbier commented 4 months ago

Is this only working for Task (I guess so as it only speak about input for task) or does it works also for launch.json ? If not how big of an effort is it (if possible at all) to make it compatible with launch.json ?

augustocdias commented 4 months ago

This is to provide input answers based on the output of a command. According to the vscode docs it should work the same way as in the tasks.

Have you ran into any issue when trying it?

Merichbier commented 4 months ago

Hey, you can close this one, it works like a charm ! Somehow I missed a line when reading the doc :

{
 "inputs": [
    {
      "id": "processID",
      "type": "command",
      "command": "shellCommand.execute", <--- this one
      "args": {
          "command": "ps axww --no-headers k comm -o '%p|%c|%p|%a' | sed -e 's/^\\s*//' -e 's/\\s*|\\s*/|/g'",
          "fieldSeparator": "|",
          "description": "Select the process to attach to"
      }
    }
  ]
}

Meaning it is normal tha VS Code was complaining about a missing command.. Which I thought was the one in the args.

Sorry for the disturbance and thanks for the amazing plugin !

augustocdias commented 4 months ago

No worries. I'm glad it's being helpful to you.