Skip to content

Commit 2500443

Browse files
committed
Fix formatting
1 parent 3517777 commit 2500443

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@
411411
"update-vscode": "node ./node_modules/vscode/bin/install",
412412
"test": "node ./out/test/runTest.js",
413413
"lint": "eslint . --ext .js,.ts",
414-
"check-formatting": "prettier --check ./src/**/*.ts .*.js "
414+
"check-formatting": "prettier --check ./src/**/*.ts .*.js ",
415+
"fix-formatting": "prettier --write ./src/**/*.ts .*.js "
415416
},
416417
"devDependencies": {
417418
"@types/glob": "^7.1.3",

src/commands/runTestFromCodeLens.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ function escapeSingleQuotes(s: string): string {
2525

2626
function quote(s: string): string {
2727
const q = isWindows() ? '"' : `'`;
28-
return [q, s, q].join('');
28+
return [q, s, q].join("");
2929
}
3030

3131
function isWindows(): boolean {
32-
return process.platform.includes('win32');
32+
return process.platform.includes("win32");
3333
}
3434

3535
function buildTestCommand(args: RunArgs): string {
@@ -39,7 +39,9 @@ function buildTestCommand(args: RunArgs): string {
3939
args.module
4040
);
4141

42-
return `mix test --exclude test --include ${quote(escapeSingleQuotes(testFilter))} ${args.filePath}`;
42+
return `mix test --exclude test --include ${quote(
43+
escapeSingleQuotes(testFilter)
44+
)} ${args.filePath}`;
4345
}
4446

4547
function buildTestInclude(

0 commit comments

Comments
 (0)