From 1c29be9c65ef4fd67eefc2d9084df6ad2e2fb0aa Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Tue, 29 Jul 2025 08:39:36 +1000 Subject: [PATCH] Add notifyOnAttach option Adds the new `notifyOnAttach` option for an attach request. This option will have PSES create a new event with the source identifier `PSES.Attached` that allows the attached script to wait for the attach event. --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 2653dd3429..2974ce86fc 100644 --- a/package.json +++ b/package.json @@ -610,6 +610,11 @@ "type": "string", "description": "The custom pipe name of the PowerShell host process to attach to.", "default": null + }, + "notifyOnAttach": { + "type": "boolean", + "description": "Creates the event 'PSES.Attached' when the debugger attaches to the PowerShell host process. This is useful when creating a script that waits for the debugger to attach.", + "default": false } } }