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 1
1
import * as vscode from 'vscode' ;
2
+ import { RslintBinPath } from './utils' ;
2
3
export function setupStatusBar ( context : vscode . ExtensionContext ) {
3
4
const statusBar = vscode . window . createStatusBarItem (
4
5
vscode . StatusBarAlignment . Right ,
5
6
100 ,
6
7
) ;
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 } )` ;
9
13
statusBar . command = 'rslint.showMenu' ;
10
- statusBar . backgroundColor = new vscode . ThemeColor (
11
- 'statusBarItem.warningBackground' ,
12
- ) ;
13
14
statusBar . show ( ) ;
14
15
15
16
context . subscriptions . push ( statusBar ) ;
You can’t perform that action at this time.
0 commit comments