File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,11 @@ export async function downloadServer(
101
101
} ) ;
102
102
} ) ;
103
103
104
+ // Make sure to create this before getProjectGhcVersion
105
+ if ( ! fs . existsSync ( context . globalStoragePath ) ) {
106
+ fs . mkdirSync ( context . globalStoragePath ) ;
107
+ }
108
+
104
109
const githubOS = getGithubOS ( ) ;
105
110
if ( githubOS === null ) {
106
111
// Don't have any binaries available for this platform
@@ -129,10 +134,6 @@ export async function downloadServer(
129
134
}
130
135
const binaryURL = url . parse ( asset . browser_download_url ) ;
131
136
132
- if ( ! fs . existsSync ( context . globalStoragePath ) ) {
133
- fs . mkdirSync ( context . globalStoragePath ) ;
134
- }
135
-
136
137
const serverName = `haskell-language-server-${ release . tag_name } -${ process . platform } -${ ghcVersion } ` ;
137
138
const binaryDest = path . join ( context . globalStoragePath , serverName ) ;
138
139
You can’t perform that action at this time.
0 commit comments