Skip to content

Commit cf508f0

Browse files
Merge pull request #18 from Workiva/remove-pub-command
Use dart executable instead of pub
2 parents a8bb5b6 + bdb2b18 commit cf508f0

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed
-455 KB
Binary file not shown.
338 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "over-react-format-on-save",
33
"displayName": "OverReact Format on Save",
44
"description": "A Dart project formatting tool that enables formatting on file save. Attempts to use OverReact Format but defaults to dartfmt.",
5-
"version": "1.0.1",
5+
"version": "1.0.2",
66
"publisher": "Workiva",
77
"repository": "https://github.com/Workiva/vs-code-format-on-save/",
88
"engines": {

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class RunFormatOnSave {
7070
const shouldScanForNestedPackages = this.config.get<Boolean>('scanForNestedProjects');
7171

7272
const shouldUseCustomLineLength = customLineLength > 0;
73-
let executable : "pub" | "dartfmt";
73+
let executable : "dart" | "dartfmt";
7474
const args : Array<string> = [];
7575

7676
const projectPath = shouldScanForNestedPackages ? this.getProjectPath(this.projectDir, fileName) : this.projectDir;
@@ -105,7 +105,7 @@ class RunFormatOnSave {
105105
}
106106

107107
if (this.useOverReactFormat) {
108-
executable = 'pub'
108+
executable = 'dart'
109109
args.push('run', 'over_react_format', fileName);
110110
if (shouldUseCustomLineLength) {
111111
args.push('-l', `${customLineLength}`);

0 commit comments

Comments
 (0)