@@ -15,7 +15,7 @@ import { IServiceContainer } from '../../client/ioc/types';
15
15
class InterpreterQuickPickItem implements IInterpreterQuickPickItem {
16
16
public path : string ;
17
17
public label : string ;
18
- public description : string ;
18
+ public description ! : string ;
19
19
public detail ?: string ;
20
20
constructor ( l : string , p : string ) {
21
21
this . path = p ;
@@ -24,7 +24,7 @@ class InterpreterQuickPickItem implements IInterpreterQuickPickItem {
24
24
}
25
25
26
26
// tslint:disable-next-line:max-func-body-length
27
- suite ( 'Intepreters - selector' , ( ) => {
27
+ suite ( 'Interpreters - selector' , ( ) => {
28
28
let serviceContainer : IServiceContainer ;
29
29
let workspace : TypeMoq . IMock < IWorkspaceService > ;
30
30
let appShell : TypeMoq . IMock < IApplicationShell > ;
@@ -65,14 +65,14 @@ suite('Intepreters - selector', () => {
65
65
66
66
test ( 'Suggestions' , async ( ) => {
67
67
const initial : PythonInterpreter [ ] = [
68
- { displayName : '1' , path : 'path1' , type : InterpreterType . Unknown } ,
69
- { displayName : '2' , path : 'path1' , type : InterpreterType . Unknown } ,
70
- { displayName : '1' , path : 'path1' , type : InterpreterType . Unknown } ,
71
- { displayName : '2' , path : 'path2' , type : InterpreterType . Unknown } ,
72
- { displayName : '2' , path : 'path2' , type : InterpreterType . Unknown } ,
73
- { displayName : '2 (virtualenv)' , path : 'path2' , type : InterpreterType . VirtualEnv } ,
74
- { displayName : '3' , path : 'path2' , type : InterpreterType . Unknown } ,
75
- { displayName : '4' , path : 'path4' , type : InterpreterType . Conda }
68
+ { displayName : '1' , path : 'c:/path1/ path1' , type : InterpreterType . Unknown } ,
69
+ { displayName : '2' , path : 'c:/path1/ path1' , type : InterpreterType . Unknown } ,
70
+ { displayName : '1' , path : 'c:/path1/ path1' , type : InterpreterType . Unknown } ,
71
+ { displayName : '2' , path : 'c:/path2/ path2' , type : InterpreterType . Unknown } ,
72
+ { displayName : '2' , path : 'c:/path2/ path2' , type : InterpreterType . Unknown } ,
73
+ { displayName : '2 (virtualenv)' , path : 'c:/path2/ path2' , type : InterpreterType . VirtualEnv } ,
74
+ { displayName : '3' , path : 'c:/path2/ path2' , type : InterpreterType . Unknown } ,
75
+ { displayName : '4' , path : 'c:/path4/ path4' , type : InterpreterType . Conda }
76
76
] ;
77
77
interpreterService
78
78
. setup ( x => x . getInterpreters ( TypeMoq . It . isAny ( ) ) )
@@ -82,12 +82,12 @@ suite('Intepreters - selector', () => {
82
82
const actual = await selector . getSuggestions ( ) ;
83
83
84
84
const expected : InterpreterQuickPickItem [ ] = [
85
- new InterpreterQuickPickItem ( '1' , 'path1' ) ,
86
- new InterpreterQuickPickItem ( '2' , 'path1' ) ,
87
- new InterpreterQuickPickItem ( '2' , 'path2' ) ,
88
- new InterpreterQuickPickItem ( '2 (virtualenv)' , 'path2' ) ,
89
- new InterpreterQuickPickItem ( '3' , 'path2' ) ,
90
- new InterpreterQuickPickItem ( '4' , 'path4' )
85
+ new InterpreterQuickPickItem ( '1' , 'c:/path1/ path1' ) ,
86
+ new InterpreterQuickPickItem ( '2' , 'c:/path1/ path1' ) ,
87
+ new InterpreterQuickPickItem ( '2' , 'c:/path2/ path2' ) ,
88
+ new InterpreterQuickPickItem ( '2 (virtualenv)' , 'c:/path2/ path2' ) ,
89
+ new InterpreterQuickPickItem ( '3' , 'c:/path2/ path2' ) ,
90
+ new InterpreterQuickPickItem ( '4' , 'c:/path4/ path4' )
91
91
] ;
92
92
93
93
assert . equal ( actual . length , expected . length , 'Suggestion lengths are different.' ) ;
0 commit comments