Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function format(document: TextDocument): Promise<TextEdit[]> {
return new Promise((resolve, reject) => {
// Create mix command
const mixFormatArgs: string = workspace.getConfiguration("elixir.formatter").get("mixFormatArgs") || "";
const cmd = `mix format ${mixFormatArgs} ${document.fileName}`;
const cmd = `mix format ${mixFormatArgs} "${document.fileName}"`;

// Figure out the working directory to run mix format in
const workspaceRootPath = workspace.rootPath ? workspace.rootPath : "";
Expand Down Expand Up @@ -46,4 +46,4 @@ export function activate(context: ExtensionContext) {
});
}
});
}
}