From 137702fdc9a2d594c3b9dec03e4bec24d9d94fa2 Mon Sep 17 00:00:00 2001 From: Rich Chiodo Date: Fri, 21 Mar 2025 09:59:35 -0700 Subject: [PATCH] Allow autoReload in attach configurations --- package.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/package.json b/package.json index 44cb9339..b02ade90 100644 --- a/package.json +++ b/package.json @@ -149,6 +149,43 @@ "configurationAttributes": { "attach": { "properties": { + "autoReload": { + "default": {}, + "description": "Configures automatic reload of code on edit.", + "properties": { + "enable": { + "default": false, + "description": "Automatically reload code on edit.", + "type": "boolean" + }, + "exclude": { + "default": [ + "**/.git/**", + "**/.metadata/**", + "**/__pycache__/**", + "**/node_modules/**", + "**/site-packages/**" + ], + "description": "Glob patterns of paths to exclude from auto reload.", + "items": { + "type": "string" + }, + "type": "array" + }, + "include": { + "default": [ + "**/*.py", + "**/*.pyw" + ], + "description": "Glob patterns of paths to include in auto reload.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "connect": { "label": "Attach by connecting to debugpy over a socket.", "properties": {