Skip to content

Commit

Permalink
Merge pull request #15 from kaishuu0123/fix/14-specify-format-option
Browse files Browse the repository at this point in the history
fix #14. specify format option (BREAK backward compatibility erd-go from v1.4)
  • Loading branch information
kaishuu0123 authored Jul 21, 2018
2 parents 93e5dc8 + da4d4ba commit fd885e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function writeTofile(uri, fileName, fileFormat) {
const dotProgram = getDotProgram(extensionId);
const erdProgram = getErdProgram(extensionId);

const erdProcess = child_process.spawn(erdProgram);
const erdProcess = child_process.spawn(erdProgram, ["-f", "dot"]);
const dotProcess = child_process.spawn(dotProgram, ["-T", fileFormat]);
dotProcess.stdout.setEncoding('binary')

Expand Down Expand Up @@ -124,7 +124,7 @@ class ErdPreviewContentProvider implements vscode.TextDocumentContentProvider
return new Promise<string>((resolve, reject) => {
outputPanel.clear();

const erdProcess = child_process.spawn(erdProgram);
const erdProcess = child_process.spawn(erdProgram, ["-f", "dot"]);
const dotProcess = child_process.spawn(dotProgram, ["-T", "svg"]);

let errorHandler = (commandName, error) => {
Expand Down

0 comments on commit fd885e8

Please sign in to comment.