Skip to content

Commit 7fe7c9d

Browse files
committed
Fix PowerShell#52: Pass /debugAdapter arg directly to host
This change updates the debug adapter registration to remove the need for the old .cmd hack to launch the PowerShell Editor Services host process with the /debugAdapter flag. VS Code 0.10.7 has been fixed so that arguments in the debug adapter registration get passed through to the host process.
1 parent 7338689 commit 7fe7c9d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@
113113
"powershell"
114114
]
115115
},
116-
"program": "bin/PowerShellEditorServices.Host/bin/Debug/Microsoft.PowerShell.EditorServices.Host.DebugAdapter.cmd",
116+
"program": "bin/Microsoft.PowerShell.EditorServices.Host.exe",
117+
"args": [
118+
"/debugAdapter"
119+
],
117120
"configurationAttributes": {
118121
"launch": {
119122
"required": [
@@ -143,7 +146,10 @@
143146
"powershell"
144147
]
145148
},
146-
"program": "bin/Microsoft.PowerShell.EditorServices.Host.DebugAdapter.x86.cmd",
149+
"program": "bin/Microsoft.PowerShell.EditorServices.Host.x86.exe",
150+
"args": [
151+
"/debugAdapter"
152+
],
147153
"configurationAttributes": {
148154
"launch": {
149155
"required": [

0 commit comments

Comments
 (0)