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:
90
90
| Linux | ` $HOME/.config/Code/User/globalStorage/haskell.haskell/.ghcup ` |
91
91
92
92
If 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.
94
94
95
95
If you need to set mirrors for ghcup download info, check the settings ` haskell.metadataURL ` and ` haskell.releasesURL ` .
96
96
Original file line number Diff line number Diff line change @@ -205,11 +205,13 @@ export async function findHaskellLanguageServer(
205
205
workingDir : string ,
206
206
folder ?: WorkspaceFolder
207
207
) : Promise < string > {
208
-
209
208
logger . info ( 'Finding haskell-language-server' ) ;
210
209
210
+ if ( workspace . getConfiguration ( 'haskell' ) . get ( 'serverExecutablePath' ) as string !== '' ) {
211
+ return findServerExecutable ( context , logger , folder ) ;
212
+ }
213
+
211
214
const storagePath : string = await getStoragePath ( context ) ;
212
- logger . info ( `Using ${ storagePath } to store downloaded binaries` ) ;
213
215
214
216
if ( ! fs . existsSync ( storagePath ) ) {
215
217
fs . mkdirSync ( storagePath ) ;
@@ -233,11 +235,7 @@ export async function findHaskellLanguageServer(
233
235
}
234
236
235
237
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 ) ;
241
239
} else {
242
240
// we manage HLS, make sure ghcup is installed/available
243
241
await getGHCup ( context , logger ) ;
You can’t perform that action at this time.
0 commit comments