From e23d0c23d834c705e61dfd06427ce01ffeee23f3 Mon Sep 17 00:00:00 2001 From: Pavel Minaev Date: Wed, 15 Apr 2020 11:02:46 -0700 Subject: [PATCH] Fix #116: debugpy requires `pathFormat` in initialize request Make "pathFormat" optional as per the DAP specification. --- src/debugpy/adapter/clients.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debugpy/adapter/clients.py b/src/debugpy/adapter/clients.py index 1f95af1c..d1ad18e0 100644 --- a/src/debugpy/adapter/clients.py +++ b/src/debugpy/adapter/clients.py @@ -32,7 +32,7 @@ class Client(components.Component): "locale": "en-US", "linesStartAt1": True, "columnsStartAt1": True, - "pathFormat": json.enum("path"), # we don't support "uri" + "pathFormat": json.enum("path", optional=True), # we don't support "uri" } def __init__(self, sock):