File tree Expand file tree Collapse file tree
client/interpreter/display Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Ensure status bar with interpreter information takes priority over other items.
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export class InterpreterDisplay implements IInterpreterDisplay {
2323 const application = serviceContainer . get < IApplicationShell > ( IApplicationShell ) ;
2424 const disposableRegistry = serviceContainer . get < Disposable [ ] > ( IDisposableRegistry ) ;
2525
26- this . statusBar = application . createStatusBarItem ( StatusBarAlignment . Left ) ;
26+ this . statusBar = application . createStatusBarItem ( StatusBarAlignment . Left , 100 ) ;
2727 this . statusBar . command = 'python.setInterpreter' ;
2828 disposableRegistry . push ( this . statusBar ) ;
2929 }
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ suite('Interpreters Display', () => {
6464 serviceContainer . setup ( c => c . get ( TypeMoq . It . isValue ( IInterpreterHelper ) ) ) . returns ( ( ) => interpreterHelper . object ) ;
6565 serviceContainer . setup ( c => c . get ( TypeMoq . It . isValue ( IPathUtils ) ) ) . returns ( ( ) => pathUtils . object ) ;
6666
67- applicationShell . setup ( a => a . createStatusBarItem ( TypeMoq . It . isValue ( StatusBarAlignment . Left ) , TypeMoq . It . isValue ( undefined ) ) ) . returns ( ( ) => statusBar . object ) ;
67+ applicationShell . setup ( a => a . createStatusBarItem ( TypeMoq . It . isValue ( StatusBarAlignment . Left ) , TypeMoq . It . isValue ( 100 ) ) ) . returns ( ( ) => statusBar . object ) ;
6868 pathUtils . setup ( p => p . getDisplayName ( TypeMoq . It . isAny ( ) , TypeMoq . It . isAny ( ) ) ) . returns ( p => p ) ;
6969
7070 interpreterDisplay = new InterpreterDisplay ( serviceContainer . object ) ;
You can’t perform that action at this time.
0 commit comments