@@ -126,7 +126,7 @@ suite('Interpreter Path Service', async () => {
126
126
127
127
test ( 'If the one-off transfer to new storage has not happened yet for the workspace, do it and record the transfer' , async ( ) => {
128
128
const workspaceFileUri = Uri . parse ( 'path/to/workspaceFile' ) ;
129
- const expectedWorkspaceKey = 'PATH\\TO\\WORKSPACEFILE' ;
129
+ const expectedWorkspaceKey = workspaceFileUri . fsPath ;
130
130
const update = sinon . stub ( InterpreterPathService . prototype , 'update' ) ;
131
131
const persistentState = TypeMoq . Mock . ofType < IPersistentState < string [ ] > > ( ) ;
132
132
workspaceService . setup ( ( w ) => w . workspaceFile ) . returns ( ( ) => workspaceFileUri ) ;
@@ -148,7 +148,7 @@ suite('Interpreter Path Service', async () => {
148
148
149
149
test ( 'If the one-off transfer to new storage has already happened for the workspace, do not update and simply return' , async ( ) => {
150
150
const workspaceFileUri = Uri . parse ( 'path/to/workspaceFile' ) ;
151
- const expectedWorkspaceKey = 'PATH\\TO\\WORKSPACEFILE' ;
151
+ const expectedWorkspaceKey = workspaceFileUri . fsPath ;
152
152
const update = sinon . stub ( InterpreterPathService . prototype , 'update' ) ;
153
153
const persistentState = TypeMoq . Mock . ofType < IPersistentState < string [ ] > > ( ) ;
154
154
workspaceService . setup ( ( w ) => w . workspaceFile ) . returns ( ( ) => workspaceFileUri ) ;
@@ -330,7 +330,7 @@ suite('Interpreter Path Service', async () => {
330
330
331
331
test ( 'Workspace settings are correctly updated in case of multiroot folders' , async ( ) => {
332
332
const workspaceFileUri = Uri . parse ( 'path/to/workspaceFile' ) ;
333
- const expectedSettingKey = 'WORKSPACE_INTERPRETER_PATH_PATH\\TO\\WORKSPACEFILE' ;
333
+ const expectedSettingKey = `WORKSPACE_INTERPRETER_PATH_ ${ workspaceFileUri . fsPath } ` ;
334
334
const persistentState = TypeMoq . Mock . ofType < IPersistentState < string | undefined > > ( ) ;
335
335
workspaceService . setup ( ( w ) => w . getWorkspaceFolderIdentifier ( resource ) ) . returns ( ( ) => resource . fsPath ) ;
336
336
workspaceService . setup ( ( w ) => w . workspaceFile ) . returns ( ( ) => workspaceFileUri ) ;
@@ -507,7 +507,7 @@ suite('Interpreter Path Service', async () => {
507
507
508
508
test ( 'Inspecting settings returns as expected in case of multiroot folders' , async ( ) => {
509
509
const workspaceFileUri = Uri . parse ( 'path/to/workspaceFile' ) ;
510
- const expectedWorkspaceSettingKey = 'WORKSPACE_INTERPRETER_PATH_PATH\\TO\\WORKSPACEFILE' ;
510
+ const expectedWorkspaceSettingKey = `WORKSPACE_INTERPRETER_PATH_ ${ workspaceFileUri . fsPath } ` ;
511
511
const expectedWorkspaceFolderSettingKey = `WORKSPACE_FOLDER_INTERPRETER_PATH_${ resource . fsPath } ` ;
512
512
const workspaceConfig = TypeMoq . Mock . ofType < WorkspaceConfiguration > ( ) ;
513
513
// A workspace file is present in case of multiroot workspace folders
0 commit comments