@@ -26,7 +26,7 @@ export interface IEnvVars {
26
26
[ key : string ] : string ;
27
27
}
28
28
29
- type ManageHLS = 'system-ghcup ' | 'PATH' ;
29
+ type ManageHLS = 'GHCup ' | 'PATH' ;
30
30
let manageHLS = workspace . getConfiguration ( 'haskell' ) . get ( 'manageHLS' ) as ManageHLS | null ;
31
31
32
32
// On Windows the executable needs to be stored somewhere with an .exe extension
@@ -234,7 +234,7 @@ export async function findHaskellLanguageServer(
234
234
( await window . showInformationMessage ( promptMessage , 'automatically via GHCup' , 'manually via PATH' ) ) ||
235
235
null ;
236
236
if ( decision === 'automatically via GHCup' ) {
237
- manageHLS = 'system-ghcup ' ;
237
+ manageHLS = 'GHCup ' ;
238
238
} else if ( decision === 'manually via PATH' ) {
239
239
manageHLS = 'PATH' ;
240
240
} else {
@@ -332,7 +332,7 @@ async function callGHCup(
332
332
const metadataUrl = workspace . getConfiguration ( 'haskell' ) . metadataURL ;
333
333
334
334
const storagePath : string = await getStoragePath ( context ) ;
335
- if ( manageHLS === 'system-ghcup ' ) {
335
+ if ( manageHLS === 'GHCup ' ) {
336
336
return await callAsync (
337
337
'ghcup' ,
338
338
[ '--no-verbose' ] . concat ( metadataUrl ? [ '-s' , metadataUrl ] : [ ] ) . concat ( args ) ,
@@ -451,7 +451,7 @@ export async function getGHCup(context: ExtensionContext, logger: Logger): Promi
451
451
throw new MissingToolError ( 'ghcup' ) ;
452
452
}
453
453
454
- if ( manageHLS === 'system-ghcup ' ) {
454
+ if ( manageHLS === 'GHCup ' ) {
455
455
logger . info ( `found ghcup at ${ localGHCup } ` ) ;
456
456
const args = [ 'upgrade' ] ;
457
457
await callGHCup ( context , logger , args , 'Upgrading ghcup' , true ) ;
0 commit comments