Skip to content

Commit

Permalink
Merge pull request #361 from Jafaral/vscode
Browse files Browse the repository at this point in the history
add default vscode configs and extension recommendation
  • Loading branch information
Don-Ward authored Feb 21, 2024
2 parents d03ae55 + a4f6433 commit a031a82
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"jafar.unicon-syntax",
"jafar.unicon-debugger",
"jafar.unicon-lsp"
]
}
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"json.format.keepLines": true,
"[json]": {
"editor.tabSize": 3
},
"[shellscript]": {
"editor.tabSize": 3,
"editor.detectIndentation": true
},

}
105 changes: 105 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build Unicon",
"command": "make",
"options": {
"cwd": "${workspaceFolder}"
},
"args": [ "-j" ],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build iconx",
"type": "shell",
"command": "make",
"options": {
"cwd": "${workspaceFolder}/src/runtime"
},
"args": [ "-j", "iconx" ],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build src",
"type": "shell",
"command": "make",
"options": {
"cwd": "${workspaceFolder}/src"
},
"args": [ "-j" ],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build uni",
"command": "make",
"options": {
"cwd": "${workspaceFolder}/uni"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Configure Unicon",
"command": "configure",
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Configure Dev Unicon",
"command": "configure",
"args": [
"--enable-debug",
"--enable-devmode"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always"
}
},
{
"label": "Configure Dev Unicon No iconc",
"command": "configure",
"args": [
"--enable-debug",
"--enable-devmode"
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always"
}
},
{
"label": "Run Unicon Tests",
"type": "shell",
"command": "make Test",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}
33 changes: 33 additions & 0 deletions .vscode/unicon.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"folders": [
{
"path": ".."
}
],
"settings": {
"files.associations": {
//"*.r": "c11",
// "*.ri": "c11"
},
"files.exclude": {
"**/*.la": true,
"**/*.lo": true,
"**/*.a": true,
"**/*.so": true,
"**/*.o": true,
"**/*.u": true,
"config.status": true,
"**/uniclass.*": true
},
"C_Cpp.default.includePath": [
"${default}",
"${workspaceFolder}",
"${workspaceFolder}/**",
"${workspaceFolder}/src/h",
"${workspaceFolder}/rt/include"
],
"C_Cpp.default.intelliSenseMode": "linux-gcc-x64",
"C_Cpp.default.compilerPath": "/usr/bin/gcc",
"C_Cpp.default.defines": [ ]
}
}

0 comments on commit a031a82

Please sign in to comment.