Skip to content

Commit 2a6e93d

Browse files
committed
hlsUpdateBehavior -> updateBehavior
1 parent 725eb05 commit 2a6e93d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"default": "",
153153
"description": "Manually set a language server executable. Can be something on the $PATH or a path to an executable itself. Works with ~, ${HOME} and ${workspaceFolder}."
154154
},
155-
"haskell.hlsUpdateBehavior": {
155+
"haskell.updateBehavior": {
156156
"scope": "machine",
157157
"type": "string",
158158
"enum": [

src/hlsBinaries.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ async function getLatestReleaseMetadata(context: ExtensionContext): Promise<IRel
180180
}
181181
}
182182
// Not all users want to upgrade right away, in that case prompt
183-
const updateBehaviour = workspace.getConfiguration('haskell').get('hlsUpdateBehavior') as UpdateBehaviour;
183+
const updateBehaviour = workspace.getConfiguration('haskell').get('updateBehavior') as UpdateBehaviour;
184184

185185
if (updateBehaviour === 'never-check') {
186186
return readCachedReleaseData();
@@ -253,7 +253,7 @@ export async function downloadHaskellLanguageServer(
253253
const release = await getLatestReleaseMetadata(context);
254254
if (!release) {
255255
let message = "Couldn't find any pre-built haskell-language-server binaries";
256-
const updateBehaviour = workspace.getConfiguration('haskell').get('hlsUpdateBehavior') as UpdateBehaviour;
256+
const updateBehaviour = workspace.getConfiguration('haskell').get('updateBehavior') as UpdateBehaviour;
257257
if (updateBehaviour === 'never-check') {
258258
message += ' (and checking for newer versions is disabled)';
259259
}

0 commit comments

Comments
 (0)