@@ -10,9 +10,8 @@ import { Uri, WorkspaceFolder } from 'vscode';
10
10
import { IWorkspaceService } from '../../../../../client/common/application/types' ;
11
11
import { WorkspaceService } from '../../../../../client/common/application/workspace' ;
12
12
import { FileSystem } from '../../../../../client/common/platform/fileSystem' ;
13
- import { PathUtils } from '../../../../../client/common/platform/pathUtils' ;
14
- import { IFileSystem } from '../../../../../client/common/platform/types' ;
15
- import { IPathUtils } from '../../../../../client/common/types' ;
13
+ import { FileSystemPathUtils } from '../../../../../client/common/platform/fs-paths' ;
14
+ import { IFileSystem , IFileSystemPathUtils } from '../../../../../client/common/platform/types' ;
16
15
import { DebugConfigStrings } from '../../../../../client/common/utils/localize' ;
17
16
import { MultiStepInput } from '../../../../../client/common/utils/multiStepInput' ;
18
17
import { DebuggerTypeName } from '../../../../../client/debugger/constants' ;
@@ -22,7 +21,7 @@ import { DebugConfigurationState } from '../../../../../client/debugger/extensio
22
21
suite ( 'Debugging - Configuration Provider Pyramid' , ( ) => {
23
22
let fs : IFileSystem ;
24
23
let workspaceService : IWorkspaceService ;
25
- let pathUtils : IPathUtils ;
24
+ let pathUtils : IFileSystemPathUtils ;
26
25
let provider : TestPyramidLaunchDebugConfigurationProvider ;
27
26
let input : MultiStepInput < DebugConfigurationState > ;
28
27
class TestPyramidLaunchDebugConfigurationProvider extends PyramidLaunchDebugConfigurationProvider {
@@ -37,7 +36,7 @@ suite('Debugging - Configuration Provider Pyramid', () => {
37
36
setup ( ( ) => {
38
37
fs = mock ( FileSystem ) ;
39
38
workspaceService = mock ( WorkspaceService ) ;
40
- pathUtils = mock ( PathUtils ) ;
39
+ pathUtils = mock ( FileSystemPathUtils ) ;
41
40
input = mock < MultiStepInput < DebugConfigurationState > > ( MultiStepInput ) ;
42
41
provider = new TestPyramidLaunchDebugConfigurationProvider (
43
42
instance ( fs ) ,
@@ -58,7 +57,7 @@ suite('Debugging - Configuration Provider Pyramid', () => {
58
57
const folder = { uri : Uri . parse ( path . join ( 'one' , 'two' ) ) , name : '1' , index : 0 } ;
59
58
const managePyPath = path . join ( folder . uri . fsPath , 'development.ini' ) ;
60
59
61
- when ( pathUtils . separator ) . thenReturn ( '-' ) ;
60
+ when ( pathUtils . paths . sep ) . thenReturn ( '-' ) ;
62
61
when ( fs . fileExists ( managePyPath ) ) . thenResolve ( true ) ;
63
62
64
63
const file = await provider . getDevelopmentIniPath ( folder ) ;
@@ -126,7 +125,7 @@ suite('Debugging - Configuration Provider Pyramid', () => {
126
125
const folder = { uri : Uri . parse ( path . join ( 'one' , 'two' ) ) , name : '1' , index : 0 } ;
127
126
const state = { config : { } , folder } ;
128
127
provider . getDevelopmentIniPath = ( ) => Promise . resolve ( 'xyz.ini' ) ;
129
- when ( pathUtils . separator ) . thenReturn ( '-' ) ;
128
+ when ( pathUtils . paths . sep ) . thenReturn ( '-' ) ;
130
129
131
130
await provider . buildConfiguration ( instance ( input ) , state ) ;
132
131
@@ -147,7 +146,7 @@ suite('Debugging - Configuration Provider Pyramid', () => {
147
146
const folder = { uri : Uri . parse ( path . join ( 'one' , 'two' ) ) , name : '1' , index : 0 } ;
148
147
const state = { config : { } , folder } ;
149
148
provider . getDevelopmentIniPath = ( ) => Promise . resolve ( undefined ) ;
150
- when ( pathUtils . separator ) . thenReturn ( '-' ) ;
149
+ when ( pathUtils . paths . sep ) . thenReturn ( '-' ) ;
151
150
when ( input . showInputBox ( anything ( ) ) ) . thenResolve ( 'hello' ) ;
152
151
153
152
await provider . buildConfiguration ( instance ( input ) , state ) ;
@@ -172,7 +171,7 @@ suite('Debugging - Configuration Provider Pyramid', () => {
172
171
const workspaceFolderToken = '${workspaceFolder}' ;
173
172
const defaultIni = `${ workspaceFolderToken } -development.ini` ;
174
173
175
- when ( pathUtils . separator ) . thenReturn ( '-' ) ;
174
+ when ( pathUtils . paths . sep ) . thenReturn ( '-' ) ;
176
175
when ( input . showInputBox ( anything ( ) ) ) . thenResolve ( ) ;
177
176
178
177
await provider . buildConfiguration ( instance ( input ) , state ) ;
0 commit comments