File tree 1 file changed +7
-5
lines changed
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):
263
263
self ._propagate_deferred_events ()
264
264
return
265
265
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"
268
270
elif {"UnixClient" , "UNIX" } & debug_options :
269
- client_os_type = "UNIX"
271
+ client_os = "UNIX"
270
272
else :
271
- client_os_type = "WINDOWS" if sys .platform == "win32" else "UNIX"
273
+ client_os = "WINDOWS" if sys .platform == "win32" else "UNIX"
272
274
self .server .channel .request (
273
275
"setDebuggerProperty" ,
274
276
{
275
277
"skipSuspendOnBreakpointException" : ("BaseException" ,),
276
278
"skipPrintBreakpointException" : ("NameError" ,),
277
279
"multiThreadsSingleNotification" : True ,
278
- "ideOS" : client_os_type ,
280
+ "ideOS" : client_os ,
279
281
},
280
282
)
281
283
You can’t perform that action at this time.
0 commit comments