diff --git a/docs/settings/linux/c_cpp_properties.json b/docs/settings/linux/c_cpp_properties.json index 2e44233747..d602b8da6e 100644 --- a/docs/settings/linux/c_cpp_properties.json +++ b/docs/settings/linux/c_cpp_properties.json @@ -3,8 +3,6 @@ { "name": "linux", "includePath": [ - "${workspaceFolder}/common/include", - "${workspaceFolder}/common/include/**", "${workspaceFolder}/core/include", "${workspaceFolder}/core/include/**", "${workspaceFolder}/core/build/arch/debug/include/", diff --git a/docs/settings/linux/extensions.json b/docs/settings/linux/extensions.json index c61ba0fd94..bd7f528324 100644 --- a/docs/settings/linux/extensions.json +++ b/docs/settings/linux/extensions.json @@ -3,8 +3,10 @@ // for the documentation about the extensions.json format "recommendations": [ "asabil.meson", - "EditorConfig.editorconfig", + "editorconfig.editorconfig", "ms-python.python", - "timonwong.shellcheck" + "mads-hartmann.bash-ide-vscode", + "timonwong.shellcheck", + "maelvalais.autoconf" ] } diff --git a/docs/settings/linux/settings.json b/docs/settings/linux/settings.json index 2f28814b27..be15b13027 100644 --- a/docs/settings/linux/settings.json +++ b/docs/settings/linux/settings.json @@ -101,7 +101,10 @@ "glib.h": "c" }, "C_Cpp.clang_format_fallbackStyle": "Google", + "bashIde.explainshellEndpoint": "http://localhost:5000", + "bashIde.highlightParsingErrors": true, "shellcheck.customArgs": [ "--external-sources --source-path=resources/build/" - ] + ], + "C_Cpp.errorSquiggles": "EnabledIfIncludesResolve", } diff --git a/docs/settings/linux/tasks.json b/docs/settings/linux/tasks.json index 7beff2efe8..f274656555 100644 --- a/docs/settings/linux/tasks.json +++ b/docs/settings/linux/tasks.json @@ -47,6 +47,70 @@ "group": "build", "detail": "build core" }, + { + "type": "shell", + "label": "core: configure", + "command": "${workspaceFolder}/core/build.sh", + "args": [ "--debug", "configure", + ], + "options": { + "cwd": "${workspaceFolder}/core", + }, + "presentation": { + "clear": true + }, + "group": "build", + "detail": "configure core" + }, + { + "type": "shell", + "label": "core: configure+build", + "command": "${workspaceFolder}/core/build.sh", + "args": [ + "--debug", "configure", "build", "tests" + ], + "options": { + "cwd": "${workspaceFolder}/core" + }, + "problemMatcher": [ + { + "owner": "cpp", + "source": "compiler", + "fileLocation": [ + "relative", + "${workspaceFolder}/core/" + ], + "pattern": [ + { + "regexp": "^../../../(.*):(\\d+):(\\d+):\\s+(warning|error|note):\\s+(.*)(\\s+\\[.*\\])?$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 + } + ] + }, + { + "owner": "cpp", + "source": "linker", + "fileLocation": "absolute", + "pattern": [ + { + "regexp": "^(/usr/bin/ld:\\s+)?(.*):(\\d+):\\s+(.*)$", + "file": 2, + "location": 3, + "message": 4 + } + ] + }, + ], + "presentation": { + "clear": true + }, + "group": "build", + "detail": "build core" + }, { "type": "shell", "label": "core: test", @@ -61,6 +125,16 @@ "group": "test", "detail": "run tests for core" }, + { + "type": "shell", + "label": "ibus-keyman: autogen.sh", + "command": "./autogen.sh", + "options": { + "cwd": "${workspaceFolder}/linux/ibus-keyman" + }, + "group": "build", + "detail": "autogen ibus-keyman" + }, { "type": "shell", "label": "ibus-keyman: configure", @@ -107,5 +181,36 @@ "group": "build", "detail": "build ibus-keyman" }, + { + "type": "shell", + "label": "ibus-keyman: build tests", + "command": "make", + "options": { + "cwd": "${workspaceFolder}/linux/ibus-keyman/tests", + }, + "group": "build", + "detail": "build ibus-keyman" + }, + { + "type": "shell", + "label": "ibus-keyman: check", + "command": "make", + "args": ["check"], + "options": { + "cwd": "${workspaceFolder}/linux/ibus-keyman/", + }, + "group": "build", + "detail": "build check ibus-keyman" + }, + { + "type": "shell", + "label": "keyman-config: tests", + "command": "${workspaceFolder}/linux/keyman-config/run-tests.sh", + "options": { + "cwd": "${workspaceFolder}/linux/keyman-config", + }, + "group": "test", + "detail": "unit test keyman-config" + }, ] }