This repository was archived by the owner on Nov 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ function whenOpeningTextDocument(document: TextDocument) {
106
106
folder = nearestParentWorkspace ( folder , document . uri . fsPath ) ;
107
107
108
108
if ( ! folder ) {
109
- stopSpinner ( `RLS: Cargo.toml missing` ) ;
109
+ stopSpinner ( `Cargo.toml missing` ) ;
110
110
return ;
111
111
}
112
112
@@ -172,7 +172,7 @@ class ClientWorkspace {
172
172
}
173
173
174
174
public async start ( ) {
175
- startSpinner ( 'RLS' , ' Starting') ;
175
+ startSpinner ( 'Starting' ) ;
176
176
177
177
const serverOptions : ServerOptions = async ( ) => {
178
178
await this . autoUpdate ( ) ;
@@ -273,7 +273,7 @@ class ClientWorkspace {
273
273
274
274
const runningProgress : Set < string > = new Set ( ) ;
275
275
await this . lc . onReady ( ) ;
276
- stopSpinner ( 'RLS' ) ;
276
+ stopSpinner ( ) ;
277
277
278
278
this . lc . onNotification (
279
279
new NotificationType < ProgressParams , void > ( 'window/progress' ) ,
@@ -292,9 +292,9 @@ class ClientWorkspace {
292
292
} else if ( progress . title ) {
293
293
status = `[${ progress . title . toLowerCase ( ) } ]` ;
294
294
}
295
- startSpinner ( 'RLS' , status ) ;
295
+ startSpinner ( status ) ;
296
296
} else {
297
- stopSpinner ( 'RLS' ) ;
297
+ stopSpinner ( ) ;
298
298
}
299
299
} ,
300
300
) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export interface RustupConfig {
21
21
}
22
22
23
23
export async function rustupUpdate ( config : RustupConfig ) {
24
- startSpinner ( 'RLS' , ' Updating…') ;
24
+ startSpinner ( 'Updating…' ) ;
25
25
26
26
try {
27
27
const { stdout } = await withWsl ( config . useWSL ) . exec (
@@ -103,7 +103,7 @@ async function hasToolchain(config: RustupConfig): Promise<boolean> {
103
103
}
104
104
105
105
async function tryToInstallToolchain ( config : RustupConfig ) {
106
- startSpinner ( 'RLS' , ' Installing toolchain…') ;
106
+ startSpinner ( 'Installing toolchain…' ) ;
107
107
try {
108
108
const { command, args } = withWsl ( config . useWSL ) . modifyArgs ( config . path , [
109
109
'toolchain' ,
@@ -154,7 +154,7 @@ async function hasRlsComponents(config: RustupConfig): Promise<boolean> {
154
154
}
155
155
156
156
async function installRlsComponents ( config : RustupConfig ) {
157
- startSpinner ( 'RLS' , ' Installing components…') ;
157
+ startSpinner ( 'Installing components…' ) ;
158
158
159
159
for ( const component of REQUIRED_COMPONENTS ) {
160
160
try {
Original file line number Diff line number Diff line change 1
1
import { window } from 'vscode' ;
2
2
3
- export function startSpinner ( prefix : string , postfix : string ) {
4
- window . setStatusBarMessage ( `${ prefix } $(settings-gear~spin) ${ postfix } ` ) ;
3
+ export function startSpinner ( message : string ) {
4
+ window . setStatusBarMessage ( `RLS $(settings-gear~spin) ${ message } ` ) ;
5
5
}
6
6
7
- export function stopSpinner ( message : string ) {
8
- window . setStatusBarMessage ( message ) ;
7
+ export function stopSpinner ( message ? : string ) {
8
+ window . setStatusBarMessage ( `RLS ${ message || '' } ` ) ;
9
9
}
You can’t perform that action at this time.
0 commit comments