Skip to content

Commit 13306c5

Browse files
author
Vianpyro
committed
Add RunOnSave extension and configure SQLFluff auto-fix on save
1 parent 7932ae6 commit 13306c5

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"vscode": {
99
"extensions": [
1010
"mtxr.sqltools-driver-mysql",
11-
"dorzey.vscode-sqlfluff"
11+
"dorzey.vscode-sqlfluff",
12+
"emeraldwalk.RunOnSave"
1213
]
1314
}
1415
},

.vscode/settings.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,13 @@
77
"editor.formatOnSave": true,
88
"files.insertFinalNewline": true,
99
"files.trimFinalNewlines": true,
10-
"files.trimTrailingWhitespace": true
10+
"files.trimTrailingWhitespace": true,
11+
"emeraldwalk.runonsave": {
12+
"commands": [
13+
{
14+
"match": "*.sql",
15+
"cmd": "sqlfluff fix '${fileBasename}'"
16+
}
17+
]
18+
}
1119
}

0 commit comments

Comments
 (0)