Skip to content

Commit 2216645

Browse files
committed
Rename releases URL option path and update changelog
1 parent 35f22b3 commit 2216645

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 1.3.0
2+
3+
- Add `haskell.releasesURL` option to override where to look for HLS releases search for HLS downloads (@soiamsoNG)
4+
15
### 1.2.0
26

37
- Add option to open local documentation on Hackage (@DunetsNM)

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@
146146
"default": "haskell-language-server",
147147
"description": "Which language server to use."
148148
},
149-
"haskell.languageServerReleasesPath": {
149+
"haskell.releasesURL": {
150150
"scope": "resource",
151151
"type": "string",
152152
"default": "",
153-
"description": "An optional path to override where to check for haskell-language-server releases"
153+
"description": "An optional URL to override where to check for haskell-language-server releases"
154154
},
155155
"haskell.serverExecutablePath": {
156156
"scope": "resource",
@@ -235,4 +235,4 @@
235235
"vscode-languageclient": "6.1.3",
236236
"yauzl": "^2.10.0"
237237
}
238-
}
238+
}

src/hlsBinaries.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ async function getProjectGhcVersion(context: ExtensionContext, dir: string, rele
161161
}
162162

163163
async function getLatestReleaseMetadata(context: ExtensionContext): Promise<IRelease | null> {
164-
const releasesUrl = workspace.getConfiguration('haskell').languageServerReleasesPath
165-
? url.parse(workspace.getConfiguration('haskell').languageServerReleasesPath)
164+
const releasesUrl = workspace.getConfiguration('haskell').releasesURL
165+
? url.parse(workspace.getConfiguration('haskell').releasesURL)
166166
: undefined;
167167
const opts: https.RequestOptions = releasesUrl
168168
? {

0 commit comments

Comments
 (0)