Live-share: [VS Code] PowerShell launch config commands aren鈥檛 being properly resolved

Created on 20 Jul 2018  路  4Comments  路  Source: MicrosoftDocs/live-share

Product and Version [VS/VSCode]: VSCode v1.25.1
OS Version [macOS/Windows]: Windows 10 1803
Live Share Extension Version: 0.3.423
PowerShell Extesion Version: 1.8.1
Target Platform or Language [e.g. Node.js]: PowerShell

Scenario:
Please see the attached GIF and Logs.
With the vsLiveShare extension enabled, the 'PowerShell Launch Current File w/Args Prompt' configuration is non-functional and returns an error. If you disable the extension, it behaves as expected.
This has been referenced in vscode-powershell #1315, but appears to be isolated to use with the vsLiveShare extension.

Steps to Reproduce

  1. Install PowerShell Extension
  2. Install vsLiveShare Extension
  3. In the debug panel, choose 'PowerShell Launch Current File w/Args Prompt'
  4. Launch the Debug Session

_In case you don't have the configuration:_

"settings": {
    "launch": {
        "configurations": [
            {
                "type": "PowerShell",
                "request": "launch",
                "name": "PowerShell Launch Current File w/Args Prompt",
                "script": "${file}",
                "args": [ "${command:SpecifyScriptArgs}" ],
                "cwd": "${file}"
            },
        ]
    }
}

vscode.zip
vsliveshare

co-debug bug vscode

All 4 comments

@mpearon Hmm, it looks like we aren't correctly resolving the command:SpecifyScriptArgs command for some reason. If you remove that, it works. We'll look into this right now, and will report back. Apologies for the issue, and thanks for reporting it!

Hi, we have a fix for this particular issue and will be part of the release of next week.

@mpearon The fix for this has been resolved in the latest version of Live Share. If you could update your extension, and let us know if that unblocks you, that would be greatly appreciated. Thanks!

This is working as expected! Thank you, @lostintangent, @rodrigovaras and team! :)

Was this page helpful?
0 / 5 - 0 ratings