This commit is contained in:
Joel Spadin 2021-12-31 20:52:32 +01:00 committed by GitHub
commit cf5221374c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 75 additions and 11 deletions

8
.gitignore vendored
View file

@ -5,5 +5,11 @@
/zephyr /zephyr
/zmk-config /zmk-config
/build /build
*.code-workspace
*.DS_Store *.DS_Store
__pycache__ __pycache__
/.vscode/**
!/.vscode/extensions.json
!/.vscode/settings.json
!/.vscode/tasks.json

19
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,19 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-vscode.cpptools",
"plorefice.devicetree",
"spadin.zmk-tools",
"trond-snekvik.kconfig-lang",
"twxs.cmake",
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [
]
}

33
.vscode/settings.json vendored
View file

@ -1,6 +1,33 @@
{ {
"C_Cpp.autoAddFileAssociations": false,
"files.associations": { "files.associations": {
"*.overlay": "dts", "*.h": "c"
"*.keymap": "dts" },
} "[c]": {
"editor.formatOnSave": true
},
"[css]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
} }

26
.vscode/tasks.json vendored
View file

@ -6,22 +6,34 @@
{ {
"label": "Build", "label": "Build",
"type": "shell", "type": "shell",
"command": "cd app && west build", "command": "west build",
"group": { "options": {
"kind": "build", "cwd": "${workspaceFolder}/app"
"isDefault": true },
} "group": "build",
"problemMatcher": [
{
"base": "$gcc",
"fileLocation": ["autoDetect", "${workspaceFolder}/app/build"]
}
]
}, },
{ {
"label": "Flash", "label": "Flash",
"type": "shell", "type": "shell",
"command": "cd app && west flash", "command": "west flash",
"options": {
"cwd": "${workspaceFolder}/app"
},
"group": "test" "group": "test"
}, },
{ {
"label": "Debug", "label": "Debug",
"type": "shell", "type": "shell",
"command": "cd app && west debug", "command": "west debug",
"options": {
"cwd": "${workspaceFolder}/app"
},
"group": "test" "group": "test"
} }
] ]