File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -263,19 +263,21 @@ def handle(self, request):
263263 self ._propagate_deferred_events ()
264264 return
265265
266- if {"WindowsClient" , "Windows" } & debug_options :
267- client_os_type = "WINDOWS"
266+ if "clientOS" in request :
267+ client_os = request ("clientOS" , json .enum ("windows" , "unix" )).upper ()
268+ elif {"WindowsClient" , "Windows" } & debug_options :
269+ client_os = "WINDOWS"
268270 elif {"UnixClient" , "UNIX" } & debug_options :
269- client_os_type = "UNIX"
271+ client_os = "UNIX"
270272 else :
271- client_os_type = "WINDOWS" if sys .platform == "win32" else "UNIX"
273+ client_os = "WINDOWS" if sys .platform == "win32" else "UNIX"
272274 self .server .channel .request (
273275 "setDebuggerProperty" ,
274276 {
275277 "skipSuspendOnBreakpointException" : ("BaseException" ,),
276278 "skipPrintBreakpointException" : ("NameError" ,),
277279 "multiThreadsSingleNotification" : True ,
278- "ideOS" : client_os_type ,
280+ "ideOS" : client_os ,
279281 },
280282 )
281283
You can’t perform that action at this time.
0 commit comments