@@ -15,7 +15,7 @@ import { IServiceContainer } from '../../client/ioc/types';
1515class InterpreterQuickPickItem implements IInterpreterQuickPickItem {
1616 public path : string ;
1717 public label : string ;
18- public description : string ;
18+ public description ! : string ;
1919 public detail ?: string ;
2020 constructor ( l : string , p : string ) {
2121 this . path = p ;
@@ -24,7 +24,7 @@ class InterpreterQuickPickItem implements IInterpreterQuickPickItem {
2424}
2525
2626// tslint:disable-next-line:max-func-body-length
27- suite ( 'Intepreters - selector' , ( ) => {
27+ suite ( 'Interpreters - selector' , ( ) => {
2828 let serviceContainer : IServiceContainer ;
2929 let workspace : TypeMoq . IMock < IWorkspaceService > ;
3030 let appShell : TypeMoq . IMock < IApplicationShell > ;
@@ -65,14 +65,14 @@ suite('Intepreters - selector', () => {
6565
6666 test ( 'Suggestions' , async ( ) => {
6767 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 }
7676 ] ;
7777 interpreterService
7878 . setup ( x => x . getInterpreters ( TypeMoq . It . isAny ( ) ) )
@@ -82,12 +82,12 @@ suite('Intepreters - selector', () => {
8282 const actual = await selector . getSuggestions ( ) ;
8383
8484 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' )
9191 ] ;
9292
9393 assert . equal ( actual . length , expected . length , 'Suggestion lengths are different.' ) ;
0 commit comments