From 41480c54ded75aea74a660473fb1fbee6a8e6a55 Mon Sep 17 00:00:00 2001 From: Remy Willems Date: Thu, 7 Nov 2024 13:38:20 +0100 Subject: [PATCH 1/2] Update option names --- package.json | 8 ++++---- src/constants.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 78c76de..06b3f99 100644 --- a/package.json +++ b/package.json @@ -200,13 +200,13 @@ "default": [], "description": "(Deprecated, use repeated --plugin: in Language Server Launch Args) Absolute paths to assemblies to be used as plugins (requires restart and Dafny 3.4.0+).\nExample 1: /user/home/dafnyplugin.dll\nExample 2: /user/home/dafnyplugin.dll,oneArgument\nExample 3: /user/home/dafnyplugin.dll,\"argument with space and \\\" escaped quote\" secondArgument" }, - "dafny.languageServerLaunchArgs": { + "dafny.dafnyServerArguments": { "type": "array", "items": { "type": "string" }, "default": [], - "description": "Optional array of strings to pass to the language server. Only works if the Dafny version is 3.10 or greater. Available options can be seen using 'dafny server --help'" + "description": "Optional array of strings to use an options when starting 'dafny server', the language server that powers this extension. Only works if the Dafny version is 3.10 or greater. Available options can be seen using 'dafny server --help'" }, "dafny.cliPath": { "type": "string", @@ -218,13 +218,13 @@ "default": "bin", "description": "Absolute or relative path to the compilation output directory." }, - "dafny.runArgs": { + "dafny.dafnyRunArguments": { "type": "array", "items": { "type": "string" }, "default": [], - "description": "Optional array of strings as Dafny run and build arguments" + "description": "Optional array of strings to pass as options when invoking `dafny run` and `dafny build`. Available options can be seen using 'dafny run --help'" }, "dafny.version": { "type": "string", diff --git a/src/constants.ts b/src/constants.ts index ed5d3c6..dc08e2f 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -17,7 +17,7 @@ export namespace ConfigurationConstants { export namespace LanguageServer { export const CliPath = 'cliPath'; - export const LaunchArgs = 'languageServerLaunchArgs'; + export const LaunchArgs = 'dafnyServerArguments'; export const AutomaticVerification = 'automaticVerification'; export const VerificationTimeLimit = 'verificationTimeLimit'; export const VerificationVirtualCores = 'verificationVirtualCores'; @@ -30,7 +30,7 @@ export namespace ConfigurationConstants { export namespace Compiler { export const OutputDir = 'compilerOutputDir'; - export const Arguments = 'runArgs'; + export const Arguments = 'dafnyRunArguments'; export const CommandPrefix = 'terminalCommandPrefix'; } From 2a4a2292e0be9886a43adaa393ffa9fbf77da6b0 Mon Sep 17 00:00:00 2001 From: Remy Willems Date: Thu, 7 Nov 2024 13:52:14 +0100 Subject: [PATCH 2/2] Mention project file --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 06b3f99..8fb5ac9 100644 --- a/package.json +++ b/package.json @@ -206,7 +206,7 @@ "type": "string" }, "default": [], - "description": "Optional array of strings to use an options when starting 'dafny server', the language server that powers this extension. Only works if the Dafny version is 3.10 or greater. Available options can be seen using 'dafny server --help'" + "description": "Optional array of strings to use an options when starting 'dafny server', the language server that powers this extension. Only works if the Dafny version is 3.10 or greater. Available options can be seen using 'dafny server --help'. Note that for project specific options, it is better to configure them in a Dafny project file, which the Dafny extension then automatically finds and uses." }, "dafny.cliPath": { "type": "string",