More VSCode devcontainer improvements (#1934)

This commit is contained in:
Stefan Agner 2021-06-22 16:37:05 +02:00 committed by GitHub
parent bfca3f242a
commit 32f2da77f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 8 deletions

View File

@ -32,7 +32,7 @@
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.formatOnType": true, "editor.formatOnType": true,
"files.trimTrailingWhitespace": true, "files.trimTrailingWhitespace": true,
"terminal.integrated.defaultProfile.linux": "/bin/bash", "terminal.integrated.defaultProfile.linux": "bash",
"yaml.customTags": [ "yaml.customTags": [
"!secret scalar", "!secret scalar",
"!lambda scalar", "!lambda scalar",

View File

@ -103,6 +103,10 @@ venv.bak/
# mypy # mypy
.mypy_cache/ .mypy_cache/
# PlatformIO
.pio/
# ESPHome
config/ config/
examples/ examples/
Dockerfile Dockerfile

21
.vscode/tasks.json vendored
View File

@ -6,6 +6,27 @@
"type": "shell", "type": "shell",
"command": "python3 -m esphome dashboard config/", "command": "python3 -m esphome dashboard config/",
"problemMatcher": [] "problemMatcher": []
},
{
"label": "clang-tidy",
"type": "shell",
"command": "test -f .gcc-flags.json || pio init --silent --ide atom; ./script/clang-tidy",
"problemMatcher": [
{
"owner": "clang-tidy",
"fileLocation": "absolute",
"pattern": [
{
"regexp": "^(.*):(\\d+):(\\d+):\\s+(error):\\s+(.*) \\[([a-z0-9,\\-]+)\\]\\s*$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
]
}
]
} }
] ]
} }