Skip to content

Commit dc0ada8

Browse files
Enable always using the latest nightly Dafny release (#196)
### Changes Add an option "latest nightly" at the end of the "Preferred version" list, that will cause the IDE to download and use the latest nightly Dafny release ### Testing Manually configured the IDE to use the latest nightly and used that, and the same for 3.7.
1 parent bea5906 commit dc0ada8

9 files changed

+224
-45
lines changed

package-lock.json

+147-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@
207207
"3.5.0",
208208
"3.4.2",
209209
"3.3.0",
210-
"3.2.0"
210+
"3.2.0",
211+
"latest nightly"
211212
],
212213
"default": "latest",
213214
"description": "The preferred Dafny version to use (overriden by custom compiler and language server paths, requires restart)."
@@ -275,7 +276,7 @@
275276
"devDependencies": {
276277
"@types/glob": "^7.1.4",
277278
"@types/mocha": "^9.1.0",
278-
"@types/node": "^12.12.70",
279+
"@types/node": "^16.11.43",
279280
"@types/promise.any": "^2.0.0",
280281
"@types/proxyquire": "^1.3.28",
281282
"@types/vscode": "^1.68.0",
@@ -286,10 +287,11 @@
286287
"eslint": "^7.32.0",
287288
"glob": "^7.1.7",
288289
"mocha": "^9.2.0",
290+
"node-fetch": "^3.2.6",
289291
"ts-loader": "^9.2.5",
290292
"typescript": "^4.4.3",
291293
"webpack": "^5.52.1",
292-
"webpack-cli": "^4.5.0"
294+
"webpack-cli": "^4.10.0"
293295
},
294296
"dependencies": {
295297
"extract-zip": "^2.0.1",

src/constants.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export namespace DotnetConstants {
4545
}
4646

4747
export namespace LanguageServerConstants {
48-
export const Latest = 'latest';
48+
export const LatestStable = 'latest';
49+
export const LatestNightly = 'latest nightly';
4950
export const LatestVersion = '3.7.0';
5051
export const UnknownVersion = 'unknown';
5152
export const DafnyGitUrl = 'https://github.com/dafny-lang/dafny.git';

src/extension.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export async function deactivate(): Promise<void> {
3232
export async function restartServer(): Promise<void> {
3333
await extensionRuntime?.restart();
3434
}
35-
3635
class ExtensionRuntime {
3736
private readonly installer: DafnyInstaller;
3837
private client?: DafnyLanguageClient;
@@ -58,7 +57,7 @@ class ExtensionRuntime {
5857
return;
5958
}
6059
await createAndRegisterDafnyIntegration(this.context, this.client!, this.languageServerVersion!);
61-
commands.registerCommand(DafnyCommands.RestartServer, restartServer),
60+
commands.registerCommand(DafnyCommands.RestartServer, restartServer);
6261
this.statusOutput.appendLine('Dafny is ready');
6362
}
6463

0 commit comments

Comments
 (0)