Skip to content

Commit 32f2da7

Browse files
authored
More VSCode devcontainer improvements (esphome#1934)
1 parent bfca3f2 commit 32f2da7

File tree

3 files changed

+33
-8
lines changed

3 files changed

+33
-8
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"editor.formatOnSave": true,
3333
"editor.formatOnType": true,
3434
"files.trimTrailingWhitespace": true,
35-
"terminal.integrated.defaultProfile.linux": "/bin/bash",
35+
"terminal.integrated.defaultProfile.linux": "bash",
3636
"yaml.customTags": [
3737
"!secret scalar",
3838
"!lambda scalar",

.dockerignore

+4
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ venv.bak/
103103
# mypy
104104
.mypy_cache/
105105

106+
# PlatformIO
107+
.pio/
108+
109+
# ESPHome
106110
config/
107111
examples/
108112
Dockerfile

.vscode/tasks.json

+28-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,32 @@
11
{
2-
"version": "2.0.0",
3-
"tasks": [
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "run",
6+
"type": "shell",
7+
"command": "python3 -m esphome dashboard config/",
8+
"problemMatcher": []
9+
},
10+
{
11+
"label": "clang-tidy",
12+
"type": "shell",
13+
"command": "test -f .gcc-flags.json || pio init --silent --ide atom; ./script/clang-tidy",
14+
"problemMatcher": [
415
{
5-
"label": "run",
6-
"type": "shell",
7-
"command": "python3 -m esphome dashboard config/",
8-
"problemMatcher": []
16+
"owner": "clang-tidy",
17+
"fileLocation": "absolute",
18+
"pattern": [
19+
{
20+
"regexp": "^(.*):(\\d+):(\\d+):\\s+(error):\\s+(.*) \\[([a-z0-9,\\-]+)\\]\\s*$",
21+
"file": 1,
22+
"line": 2,
23+
"column": 3,
24+
"severity": 4,
25+
"message": 5
26+
}
27+
]
928
}
10-
]
29+
]
30+
}
31+
]
1132
}

0 commit comments

Comments
 (0)