@@ -58,6 +58,10 @@ getInfoPerOS().forEach(([osName, osType, path]) => {
5858 return folder . object ;
5959 }
6060
61+ function getClientOS ( ) {
62+ return osType === platform . OSType . Windows ? 'windows' : 'unix' ;
63+ }
64+
6165 function setupIoc ( pythonPath : string , workspaceFolder ?: WorkspaceFolder ) {
6266 configService = TypeMoq . Mock . ofType < IConfigurationService > ( ) ;
6367 diagnosticsService = TypeMoq . Mock . ofType < IInvalidPythonPathInDebuggerService > ( ) ;
@@ -160,6 +164,7 @@ getInfoPerOS().forEach(([osName, osType, path]) => {
160164 expect ( Object . keys ( debugConfig ! ) ) . to . have . lengthOf . above ( 3 ) ;
161165 expect ( debugConfig ) . to . have . property ( 'type' , 'python' ) ;
162166 expect ( debugConfig ) . to . have . property ( 'request' , 'launch' ) ;
167+ expect ( debugConfig ) . to . have . property ( 'clientOS' , getClientOS ( ) ) ;
163168 expect ( debugConfig ) . to . not . have . property ( 'pythonPath' ) ;
164169 expect ( debugConfig ) . to . have . property ( 'python' , pythonPath ) ;
165170 expect ( debugConfig ) . to . have . property ( 'debugAdapterPython' , pythonPath ) ;
@@ -188,6 +193,7 @@ getInfoPerOS().forEach(([osName, osType, path]) => {
188193 expect ( Object . keys ( debugConfig ! ) ) . to . have . lengthOf . above ( 3 ) ;
189194 expect ( debugConfig ) . to . have . property ( 'type' , 'python' ) ;
190195 expect ( debugConfig ) . to . have . property ( 'request' , 'launch' ) ;
196+ expect ( debugConfig ) . to . have . property ( 'clientOS' , getClientOS ( ) ) ;
191197 expect ( debugConfig ) . to . not . have . property ( 'pythonPath' ) ;
192198 expect ( debugConfig ) . to . have . property ( 'python' , pythonPath ) ;
193199 expect ( debugConfig ) . to . have . property ( 'debugAdapterPython' , pythonPath ) ;
@@ -215,6 +221,7 @@ getInfoPerOS().forEach(([osName, osType, path]) => {
215221 expect ( Object . keys ( debugConfig ! ) ) . to . have . lengthOf . above ( 3 ) ;
216222 expect ( debugConfig ) . to . have . property ( 'type' , 'python' ) ;
217223 expect ( debugConfig ) . to . have . property ( 'request' , 'launch' ) ;
224+ expect ( debugConfig ) . to . have . property ( 'clientOS' , getClientOS ( ) ) ;
218225 expect ( debugConfig ) . to . not . have . property ( 'pythonPath' ) ;
219226 expect ( debugConfig ) . to . have . property ( 'python' , pythonPath ) ;
220227 expect ( debugConfig ) . to . have . property ( 'debugAdapterPython' , pythonPath ) ;
@@ -239,6 +246,7 @@ getInfoPerOS().forEach(([osName, osType, path]) => {
239246
240247 expect ( Object . keys ( debugConfig ! ) ) . to . have . lengthOf . above ( 3 ) ;
241248 expect ( debugConfig ) . to . have . property ( 'type' , 'python' ) ;
249+ expect ( debugConfig ) . to . have . property ( 'clientOS' , getClientOS ( ) ) ;
242250 expect ( debugConfig ) . to . not . have . property ( 'pythonPath' ) ;
243251 expect ( debugConfig ) . to . have . property ( 'python' , pythonPath ) ;
244252 expect ( debugConfig ) . to . have . property ( 'debugAdapterPython' , pythonPath ) ;
@@ -264,6 +272,7 @@ getInfoPerOS().forEach(([osName, osType, path]) => {
264272 expect ( Object . keys ( debugConfig ! ) ) . to . have . lengthOf . above ( 3 ) ;
265273 expect ( debugConfig ) . to . have . property ( 'type' , 'python' ) ;
266274 expect ( debugConfig ) . to . have . property ( 'request' , 'launch' ) ;
275+ expect ( debugConfig ) . to . have . property ( 'clientOS' , getClientOS ( ) ) ;
267276 expect ( debugConfig ) . to . not . have . property ( 'pythonPath' ) ;
268277 expect ( debugConfig ) . to . have . property ( 'python' , pythonPath ) ;
269278 expect ( debugConfig ) . to . have . property ( 'debugAdapterPython' , pythonPath ) ;
@@ -290,6 +299,7 @@ getInfoPerOS().forEach(([osName, osType, path]) => {
290299 expect ( Object . keys ( debugConfig ! ) ) . to . have . lengthOf . above ( 3 ) ;
291300 expect ( debugConfig ) . to . have . property ( 'type' , 'python' ) ;
292301 expect ( debugConfig ) . to . have . property ( 'request' , 'launch' ) ;
302+ expect ( debugConfig ) . to . have . property ( 'clientOS' , getClientOS ( ) ) ;
293303 expect ( debugConfig ) . to . not . have . property ( 'pythonPath' ) ;
294304 expect ( debugConfig ) . to . have . property ( 'python' , pythonPath ) ;
295305 expect ( debugConfig ) . to . have . property ( 'debugAdapterPython' , pythonPath ) ;
@@ -692,6 +702,7 @@ getInfoPerOS().forEach(([osName, osType, path]) => {
692702 } ) ;
693703
694704 expect ( debugConfig ) . to . have . property ( 'console' , 'integratedTerminal' ) ;
705+ expect ( debugConfig ) . to . have . property ( 'clientOS' , getClientOS ( ) ) ;
695706 expect ( debugConfig ) . to . have . property ( 'stopOnEntry' , false ) ;
696707 expect ( debugConfig ) . to . have . property ( 'showReturnValue' , true ) ;
697708 expect ( debugConfig ) . to . have . property ( 'debugOptions' ) ;
@@ -717,6 +728,7 @@ getInfoPerOS().forEach(([osName, osType, path]) => {
717728 } ) ;
718729
719730 expect ( debugConfig ) . to . have . property ( 'stopOnEntry' , false ) ;
731+ expect ( debugConfig ) . to . have . property ( 'clientOS' , getClientOS ( ) ) ;
720732 expect ( debugConfig ) . to . have . property ( 'showReturnValue' , true ) ;
721733 expect ( debugConfig ) . to . have . property ( 'debugOptions' ) ;
722734 expect ( ( debugConfig as DebugConfiguration ) . debugOptions ) . to . be . deep . equal ( [ ] ) ;
@@ -736,6 +748,7 @@ getInfoPerOS().forEach(([osName, osType, path]) => {
736748 } ) ;
737749
738750 expect ( debugConfig ) . to . have . property ( 'console' , 'integratedTerminal' ) ;
751+ expect ( debugConfig ) . to . have . property ( 'clientOS' , getClientOS ( ) ) ;
739752 expect ( debugConfig ) . to . have . property ( 'stopOnEntry' , false ) ;
740753 expect ( debugConfig ) . to . have . property ( 'showReturnValue' , true ) ;
741754 expect ( debugConfig ) . to . have . property ( 'redirectOutput' , true ) ;
0 commit comments