@@ -287,7 +287,7 @@ suite('getAllExtraSearchPaths Integration Tests', () => {
287287 } ) ;
288288
289289 test ( 'Workspace folder setting preferred over workspace setting (Windows)' , async ( ) => {
290- // Mock → Workspace settings at different levels (Windows-style)
290+ // Mock → Workspace settings at different levels (Windows-style paths in config )
291291 pythonConfig . get . withArgs ( 'venvPath' ) . returns ( undefined ) ;
292292 pythonConfig . get . withArgs ( 'venvFolders' ) . returns ( undefined ) ;
293293 envConfig . inspect . withArgs ( 'globalSearchPaths' ) . returns ( { globalValue : [ ] } ) ;
@@ -296,8 +296,9 @@ suite('getAllExtraSearchPaths Integration Tests', () => {
296296 workspaceFolderValue : [ 'C:\\folder-level\\path' ] ,
297297 } ) ;
298298
299- const workspace1 = Uri . file ( 'C:\\Projects\\project1' ) ;
300- const workspace2 = Uri . file ( 'C:\\Projects\\project2' ) ;
299+ // Use Unix-style URIs for workspace folders (Uri.file behavior is OS-dependent)
300+ const workspace1 = Uri . file ( '/projects/project1' ) ;
301+ const workspace2 = Uri . file ( '/projects/project2' ) ;
301302 mockGetWorkspaceFolders . returns ( [ { uri : workspace1 } , { uri : workspace2 } ] ) ;
302303
303304 // Run
@@ -381,7 +382,7 @@ suite('getAllExtraSearchPaths Integration Tests', () => {
381382 } ) ;
382383
383384 test ( 'Absolute paths used as-is (Windows)' , async ( ) => {
384- // Mock → Mix of absolute paths (Windows-style)
385+ // Mock → Mix of absolute paths (Windows-style paths in config )
385386 pythonConfig . get . withArgs ( 'venvPath' ) . returns ( undefined ) ;
386387 pythonConfig . get . withArgs ( 'venvFolders' ) . returns ( undefined ) ;
387388 envConfig . inspect . withArgs ( 'globalSearchPaths' ) . returns ( {
@@ -391,7 +392,8 @@ suite('getAllExtraSearchPaths Integration Tests', () => {
391392 workspaceFolderValue : [ 'E:\\workspace\\envs' ] ,
392393 } ) ;
393394
394- const workspace = Uri . file ( 'C:\\workspace' ) ;
395+ // Use Unix-style URIs for workspace folders (Uri.file behavior is OS-dependent)
396+ const workspace = Uri . file ( '/workspace' ) ;
395397 mockGetWorkspaceFolders . returns ( [ { uri : workspace } ] ) ;
396398
397399 // Run
@@ -520,7 +522,7 @@ suite('getAllExtraSearchPaths Integration Tests', () => {
520522 } ) ;
521523
522524 test ( 'Power user - complex mix of all source types (Windows)' , async ( ) => {
523- // Mock → Complex real-world scenario (Windows-style)
525+ // Mock → Complex real-world scenario (Windows-style paths in config )
524526 pythonConfig . get . withArgs ( 'venvPath' ) . returns ( 'C:\\legacy\\venv\\path' ) ;
525527 pythonConfig . get . withArgs ( 'venvFolders' ) . returns ( [ 'D:\\legacy\\venvs' ] ) ;
526528 envConfig . inspect . withArgs ( 'globalSearchPaths' ) . returns ( {
@@ -530,8 +532,9 @@ suite('getAllExtraSearchPaths Integration Tests', () => {
530532 workspaceFolderValue : [ '.venv' , 'F:\\shared\\team\\envs' ] ,
531533 } ) ;
532534
533- const workspace1 = Uri . file ( 'C:\\workspace\\project1' ) ;
534- const workspace2 = Uri . file ( 'C:\\workspace\\project2' ) ;
535+ // Use Unix-style URIs for workspace folders (Uri.file behavior is OS-dependent)
536+ const workspace1 = Uri . file ( '/workspace/project1' ) ;
537+ const workspace2 = Uri . file ( '/workspace/project2' ) ;
535538 mockGetWorkspaceFolders . returns ( [ { uri : workspace1 } , { uri : workspace2 } ] ) ;
536539
537540 // Run
@@ -576,7 +579,7 @@ suite('getAllExtraSearchPaths Integration Tests', () => {
576579 } ) ;
577580
578581 test ( 'Overlapping paths are deduplicated (Windows)' , async ( ) => {
579- // Mock → Duplicate paths from different sources (Windows-style)
582+ // Mock → Duplicate paths from different sources (Windows-style paths in config )
580583 pythonConfig . get . withArgs ( 'venvPath' ) . returns ( undefined ) ;
581584 pythonConfig . get . withArgs ( 'venvFolders' ) . returns ( undefined ) ;
582585 envConfig . inspect . withArgs ( 'globalSearchPaths' ) . returns ( {
@@ -586,7 +589,8 @@ suite('getAllExtraSearchPaths Integration Tests', () => {
586589 workspaceFolderValue : [ 'C:\\shared\\path' , 'E:\\workspace\\unique' ] ,
587590 } ) ;
588591
589- const workspace = Uri . file ( 'C:\\workspace' ) ;
592+ // Use Unix-style URIs for workspace folders (Uri.file behavior is OS-dependent)
593+ const workspace = Uri . file ( '/workspace' ) ;
590594 mockGetWorkspaceFolders . returns ( [ { uri : workspace } ] ) ;
591595
592596 // Run
0 commit comments