File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ and possible delete them:
9090| Linux | ` $HOME/.config/Code/User/globalStorage/haskell.haskell/.ghcup ` |
9191
9292If you want to manage HLS yourself, set ` haskell.manageHLS ` to ` PATH ` and make sure HLS is in your PATH
93- or set ` haskell.serverExecutablePath ` to a valid executable.
93+ or set ` haskell.serverExecutablePath ` (overrides all other settings) to a valid executable.
9494
9595If you need to set mirrors for ghcup download info, check the settings ` haskell.metadataURL ` and ` haskell.releasesURL ` .
9696
Original file line number Diff line number Diff line change @@ -205,11 +205,13 @@ export async function findHaskellLanguageServer(
205205 workingDir : string ,
206206 folder ?: WorkspaceFolder
207207) : Promise < string > {
208-
209208 logger . info ( 'Finding haskell-language-server' ) ;
210209
210+ if ( workspace . getConfiguration ( 'haskell' ) . get ( 'serverExecutablePath' ) as string !== '' ) {
211+ return findServerExecutable ( context , logger , folder ) ;
212+ }
213+
211214 const storagePath : string = await getStoragePath ( context ) ;
212- logger . info ( `Using ${ storagePath } to store downloaded binaries` ) ;
213215
214216 if ( ! fs . existsSync ( storagePath ) ) {
215217 fs . mkdirSync ( storagePath ) ;
@@ -233,11 +235,7 @@ export async function findHaskellLanguageServer(
233235 }
234236
235237 if ( manageHLS === 'PATH' || manageHLS === null ) {
236- if ( workspace . getConfiguration ( 'haskell' ) . get ( 'serverExecutablePath' ) as string !== '' ) {
237- return findServerExecutable ( context , logger , folder ) ;
238- } else {
239- return findHLSinPATH ( context , logger , folder ) ;
240- }
238+ return findHLSinPATH ( context , logger , folder ) ;
241239 } else {
242240 // we manage HLS, make sure ghcup is installed/available
243241 await getGHCup ( context , logger ) ;
You can’t perform that action at this time.
0 commit comments