@@ -7,6 +7,7 @@ import * as path from 'path';
77
88export interface IPythonSettings {
99 pythonPath : string ;
10+ jediPath : string ;
1011 devOptions : string [ ] ;
1112 linting : ILintingSettings ;
1213 formatting : IFormattingSettings ;
@@ -115,6 +116,13 @@ export class PythonSettings extends EventEmitter implements IPythonSettings {
115116 let pythonSettings = vscode . workspace . getConfiguration ( 'python' ) ;
116117 this . pythonPath = systemVariables . resolveAny ( pythonSettings . get < string > ( 'pythonPath' ) ) ;
117118 this . pythonPath = getAbsolutePath ( this . pythonPath , IS_TEST_EXECUTION ? __dirname : workspaceRoot ) ;
119+ this . jediPath = systemVariables . resolveAny ( pythonSettings . get < string > ( 'jediPath' ) ) ;
120+ if ( typeof this . jediPath === 'string' && this . jediPath . length > 0 ) {
121+ this . jediPath = getAbsolutePath ( this . jediPath , IS_TEST_EXECUTION ? __dirname : workspaceRoot ) ;
122+ }
123+ else {
124+ this . jediPath = '' ;
125+ }
118126 this . devOptions = systemVariables . resolveAny ( pythonSettings . get < any [ ] > ( 'devOptions' ) ) ;
119127 this . devOptions = Array . isArray ( this . devOptions ) ? this . devOptions : [ ] ;
120128 let lintingSettings = systemVariables . resolveAny ( pythonSettings . get < ILintingSettings > ( 'linting' ) ) ;
@@ -203,7 +211,7 @@ export class PythonSettings extends EventEmitter implements IPythonSettings {
203211
204212 // Support for travis
205213 this . unitTest = this . unitTest ? this . unitTest : {
206- promptToConfigure :true ,
214+ promptToConfigure : true ,
207215 nosetestArgs : [ ] , nosetestPath : 'nosetest' , nosetestsEnabled : false ,
208216 outputWindow : 'python' ,
209217 pyTestArgs : [ ] , pyTestEnabled : false , pyTestPath : 'pytest' ,
@@ -241,6 +249,7 @@ export class PythonSettings extends EventEmitter implements IPythonSettings {
241249 }
242250
243251 public pythonPath : string ;
252+ public jediPath : string ;
244253 public devOptions : string [ ] ;
245254 public linting : ILintingSettings ;
246255 public formatting : IFormattingSettings ;
0 commit comments