Skip to content

Commit

Permalink
Fix: Dafny plugins working again.
Browse files Browse the repository at this point in the history
The plugins option of the IDE was no longer working because we were outputting the index.
It might not matter that much now that we have project files, but it's now fixed and I
also deprecated the options to add plugins this way since regular options work as much as project files.
  • Loading branch information
MikaelMayer committed Nov 27, 2023
1 parent 768c1c3 commit e3c7981
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
"type": "string"
},
"default": [],
"description": "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"
"description": "(Deprecated, use repeated --plugin:<path> 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": {
"type": "array",
Expand Down
2 changes: 1 addition & 1 deletion src/language/dafnyLanguageClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function getDafnyPluginsArgument(): string[] {
return (
plugins
.filter(plugin => plugin !== null && plugin !== '')
.map((plugin, i) => `--plugin:${i}=${plugin}`)
.map(plugin => `--plugin:${plugin}`)
);
}

Expand Down

0 comments on commit e3c7981

Please sign in to comment.