mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 00:42:34 +01:00
add vscode editor settings and build tasks
This commit is contained in:
parent
03b27e3142
commit
c897d5caa3
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,7 +10,6 @@ bin/
|
||||
build/
|
||||
yay0/
|
||||
expected/
|
||||
.vscode/
|
||||
.idea/
|
||||
.DS_Store
|
||||
venv/
|
||||
|
18
.vscode/c_cpp_properties.json
vendored
Normal file
18
.vscode/c_cpp_properties.json
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"version": 4,
|
||||
"configurations": [
|
||||
{
|
||||
"name": "papermario",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/include"
|
||||
],
|
||||
"defines": [
|
||||
"F3DEX_GBI_2",
|
||||
"_LANGUAGE_C"
|
||||
],
|
||||
"cStandard": "c89",
|
||||
"cppStandard": "c++17",
|
||||
"intelliSenseMode": "gcc-x86"
|
||||
}
|
||||
]
|
||||
}
|
6
.vscode/extensions.json
vendored
Normal file
6
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"ms-vscode.cpptools",
|
||||
"nanaian.vscode-star-rod",
|
||||
],
|
||||
}
|
6
.vscode/settings.json
vendored
Normal file
6
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"editor.detectIndentation": false,
|
||||
"editor.insertSpaces": true,
|
||||
"files.eol": "\n",
|
||||
"files.insertFinalNewline": true,
|
||||
}
|
81
.vscode/tasks.json
vendored
Normal file
81
.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,81 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "make",
|
||||
"type": "shell",
|
||||
"command": "PM_HEADER_REBUILD=1 make all",
|
||||
"problemMatcher": [
|
||||
{
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
"pattern": {
|
||||
"regexp": "^(src\\/.*):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"severity": 3,
|
||||
"message": 4,
|
||||
},
|
||||
},
|
||||
{
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
"severity": "error",
|
||||
"pattern": {
|
||||
"regexp": "^(src\\/.*):(\\d+):\\s+(?!warning|\\()(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"message": 3,
|
||||
},
|
||||
},
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true,
|
||||
},
|
||||
},
|
||||
{
|
||||
"label": "diff",
|
||||
"type": "shell",
|
||||
"command": "PM_HEADER_REBUILD=1 ./diff.py -mwo ${input:funcName}",
|
||||
"isBackground": true,
|
||||
"problemMatcher": [
|
||||
{
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
},
|
||||
"pattern": {
|
||||
"regexp": "^(src\\/.*):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"severity": 3,
|
||||
"message": 4,
|
||||
},
|
||||
},
|
||||
{
|
||||
"fileLocation": ["relative", "${workspaceFolder}"],
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
},
|
||||
"severity": "error",
|
||||
"pattern": {
|
||||
"regexp": "^(src\\/.*):(\\d+):\\s+(?!warning|\\()(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"message": 3,
|
||||
},
|
||||
},
|
||||
],
|
||||
"group": {
|
||||
"kind": "test",
|
||||
"isDefault": true,
|
||||
},
|
||||
},
|
||||
],
|
||||
"inputs": [
|
||||
{
|
||||
"id": "funcName",
|
||||
"description": "Function name",
|
||||
"type": "promptString",
|
||||
}
|
||||
],
|
||||
}
|
Loading…
Reference in New Issue
Block a user