Skip to content

Commit

Permalink
Merge pull request #62 from colinking/colin-04-17-Substitute_variable…
Browse files Browse the repository at this point in the history
…s_in_extraFunction

Substitute variables in extraFunction
  • Loading branch information
bradymholt authored Apr 17, 2023
2 parents f6e223c + f79c638 commit c8af406
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ export function getFormattedText(
config.pgFormatterPath
);
}
if (config.extraFunction != null) {
formattingOptions.extraFunction = substituteVariables(config.extraFunction);
}

addToOutput(
`Formatting with options ${JSON.stringify(formattingOptions)}:`
Expand Down

0 comments on commit c8af406

Please sign in to comment.