@@ -60,17 +60,6 @@ async function askPermissionToInstallRls(logger: RootLogger): Promise<RlsInstall
60
60
}
61
61
}
62
62
63
- /**
64
- * Asks a user if the user agrees to update Rustup
65
- * @returns true if a user agreed to update otherwise false
66
- */
67
- async function askPermissionToUpdateRustup ( ) : Promise < boolean > {
68
- const message = 'Before installing RLS it would be good to update Rustup. If you decline to update, RLS will not be installed' ;
69
- const updateChoice = 'Update' ;
70
- const choice = await window . showInformationMessage ( message , updateChoice ) ;
71
- return choice === updateChoice ;
72
- }
73
-
74
63
/**
75
64
* Handles the case when the user does not have RLS.
76
65
* It tries to install RLS if it is possible
@@ -100,17 +89,6 @@ async function handleMissingRls(logger: RootLogger, configuration: Configuration
100
89
case RlsInstallDecision . NotInstall :
101
90
return ;
102
91
}
103
- const permissionToUpdateRustupGranted : boolean = await askPermissionToUpdateRustup ( ) ;
104
- functionLogger . debug ( `permissionToUpdateRustupGranted=${ permissionToUpdateRustupGranted } ` ) ;
105
- if ( ! permissionToUpdateRustupGranted ) {
106
- return ;
107
- }
108
- const rustupUpdated : boolean = await rustup . update ( ) ;
109
- functionLogger . debug ( `rustupUpdated=${ rustupUpdated } ` ) ;
110
- if ( ! rustupUpdated ) {
111
- window . showErrorMessage ( 'Rustup failed to update. Check the output channel "Rust Logging"' ) ;
112
- return ;
113
- }
114
92
async function installComponent ( componentName : string , installComponent : ( ) => Promise < boolean > ) : Promise < boolean > {
115
93
window . showInformationMessage ( `${ componentName } is being installed. It can take a while` ) ;
116
94
const componentInstalled : boolean = await installComponent ( ) ;
0 commit comments