Skip to content

Commit 22d6792

Browse files
Allow autoReload in attach configurations (#676)
Co-authored-by: Eleanor Boyd <[email protected]>
1 parent 266c727 commit 22d6792

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

package.json

+37
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,43 @@
149149
"configurationAttributes": {
150150
"attach": {
151151
"properties": {
152+
"autoReload": {
153+
"default": {},
154+
"description": "Configures automatic reload of code on edit.",
155+
"properties": {
156+
"enable": {
157+
"default": false,
158+
"description": "Automatically reload code on edit.",
159+
"type": "boolean"
160+
},
161+
"exclude": {
162+
"default": [
163+
"**/.git/**",
164+
"**/.metadata/**",
165+
"**/__pycache__/**",
166+
"**/node_modules/**",
167+
"**/site-packages/**"
168+
],
169+
"description": "Glob patterns of paths to exclude from auto reload.",
170+
"items": {
171+
"type": "string"
172+
},
173+
"type": "array"
174+
},
175+
"include": {
176+
"default": [
177+
"**/*.py",
178+
"**/*.pyw"
179+
],
180+
"description": "Glob patterns of paths to include in auto reload.",
181+
"items": {
182+
"type": "string"
183+
},
184+
"type": "array"
185+
}
186+
},
187+
"type": "object"
188+
},
152189
"connect": {
153190
"label": "Attach by connecting to debugpy over a socket.",
154191
"properties": {

0 commit comments

Comments
 (0)