Skip to content

Commit

Permalink
Fix plugin arguments to Dafny server (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschoepe authored Nov 24, 2023
1 parent 716bf1d commit a496a68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/language/dafnyLanguageClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function getMarkGhostStatementsArgument(): string {

function getDafnyPluginsArgumentOld(): 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 99 in src/language/dafnyLanguageClient.ts

View workflow job for this annotation

GitHub Actions / build

Unexpected space(s) after "if"

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

View workflow job for this annotation

GitHub Actions / build

Unexpected space(s) after "if"
return [];
}
return (
Expand All @@ -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 a496a68

Please sign in to comment.