File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
packages/vscode-extension/src Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11import * as vscode from 'vscode' ;
2+ import { RslintBinPath } from './utils' ;
23export function setupStatusBar ( context : vscode . ExtensionContext ) {
34 const statusBar = vscode . window . createStatusBarItem (
45 vscode . StatusBarAlignment . Right ,
56 100 ,
67 ) ;
7- statusBar . text = '$(beaker) rslint' ;
8- statusBar . tooltip = 'Rslint Language Server' ;
8+ const binPathConfig = vscode . workspace
9+ . getConfiguration ( )
10+ . get < RslintBinPath > ( 'rslint.binPath' ) ! ;
11+ statusBar . text = `$(wrench) Rslint` ;
12+ statusBar . tooltip = `Rslint Language Server (${ binPathConfig } )` ;
913 statusBar . command = 'rslint.showMenu' ;
10- statusBar . backgroundColor = new vscode . ThemeColor (
11- 'statusBarItem.warningBackground' ,
12- ) ;
1314 statusBar . show ( ) ;
1415
1516 context . subscriptions . push ( statusBar ) ;
You can’t perform that action at this time.
0 commit comments