Skip to content

Commit

Permalink
Fix plugin arguments to Dafny server
Browse files Browse the repository at this point in the history
Dafny's `--plugin` argument no longer expects an index before the
path to the plugin DLL.
  • Loading branch information
dschoepe committed Nov 22, 2023
1 parent 716bf1d commit d14ded6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/language/dafnyLanguageClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ function getDafnyPluginsArgumentOld(): string[] {

function getDafnyPluginsArgument(): string[] {
const plugins = Configuration.get<string[]>(ConfigurationConstants.LanguageServer.DafnyPlugins);
if(plugins === null || !Array.isArray(plugins)) {
if (plugins === null || !Array.isArray(plugins)) {

Check warning on line 111 in src/language/dafnyLanguageClient.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected space(s) after "if"

Check warning on line 111 in src/language/dafnyLanguageClient.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected space(s) after "if"
return [];
}
return (
plugins
.filter(plugin => plugin !== null && plugin !== '')
.map((plugin, i) => `--plugin:${i}=${plugin}`)
.map(plugin => `--plugin:${plugin}`)
);
}

Expand Down

0 comments on commit d14ded6

Please sign in to comment.