Skip to content

Commit

Permalink
Not all options were respected #14
Browse files Browse the repository at this point in the history
  • Loading branch information
vknabel committed Oct 3, 2020
1 parent 5fa3927 commit 93fc521
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.3.6

* Fixed: `swiftformat.options` were not always respected vknabel/vscode-swiftlint#14 - [@vknabel](https://github.com/vknabel/)

# 1.3.5

* Fixed: `configSearchPaths` did not support `~` vknabel/vscode-swiftlint#8 - [@vknabel](https://github.com/vknabel/)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "git",
"url": "https://github.com/vknabel/vscode-swiftformat"
},
"version": "1.3.5",
"version": "1.3.6",
"license": "MIT",
"author": {
"name": "Valentin Knabel",
Expand Down
2 changes: 1 addition & 1 deletion src/SwiftFormatEditProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function userDefinedFormatOptionsForDocument(
.formatConfigSearchPaths()
.map(current => resolve(rootPath, current));
const existingConfig = searchPaths.find(existsSync);
return existingConfig != null ? ["--config", existingConfig] : [];
return existingConfig != null ? ["--config", existingConfig, ...formatOptions] : formatOptions;
}

function format(request: {
Expand Down

0 comments on commit 93fc521

Please sign in to comment.