Skip to content

Commit

Permalink
Fix VSCode extensions and setting names (#194)
Browse files Browse the repository at this point in the history
* install separate python extensions for linting, formatting, etc.

* fix the clang-format extension's property names

* fix clang-format extension's setting name, ignore extension recommendations
  • Loading branch information
trxcllnt authored Jan 5, 2024
1 parent 58bad39 commit 855f478
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
6 changes: 3 additions & 3 deletions features/src/llvm/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "LLVM compilers and tools",
"id": "llvm",
"version": "24.2.1",
"version": "24.2.2",
"description": "A feature to install LLVM compilers and tools",
"options": {
"version": {
Expand Down Expand Up @@ -58,8 +58,8 @@
"C_Cpp.intelliSenseEngine": "disabled",
"C_Cpp.configurationWarnings": "disabled",
"C_Cpp.autoAddFileAssociations": false,
"clang-format.fallbackStyle": "none",
"clang-format.executable": "/usr/bin/clang-format",
"clangFormat.fallbackStyle": "none",
"clangFormat.executable": "/usr/bin/clang-format",
"clangd.arguments": [
"--log=info",
"--clang-tidy",
Expand Down
26 changes: 14 additions & 12 deletions features/src/mambaforge/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Mambaforge",
"id": "mambaforge",
"version": "24.2.0",
"version": "24.2.1",
"description": "A feature to install mambaforge",
"options": {
"version": {
Expand All @@ -21,22 +21,24 @@
"customizations": {
"vscode": {
"extensions": [
"ms-python.autopep8",
"ms-python.black-formatter",
"ms-python.flake8",
"ms-python.mypy-type-checker",
"ms-python.pylint",
"ms-python.python",
"ms-python.vscode-pylance"
],
"settings": {
"python.linting.enabled": true,
"autopep8.path": "/tmp/.current-conda-env/bin/autopep8",
"black-formatter.path": "/tmp/.current-conda-env/bin/black",
"clangd.path": "/tmp/.current-conda-env/bin/clangd",
"flake8.path": "/tmp/.current-conda-env/bin/flake8",
"mypy-type-checker.path": "/tmp/.current-conda-env/bin/mypy",
"pylint.enabled": true,
"pylint.path": "/tmp/.current-conda-env/bin/pylint",
"python.terminal.activateEnvironment": false,
"python.defaultInterpreterPath": "/tmp/.current-conda-env/bin/python",
"python.formatting.autopep8Path": "/tmp/.current-conda-env/bin/autopep8",
"python.formatting.blackPath": "/tmp/.current-conda-env/bin/black",
"python.formatting.yapfPath": "/tmp/.current-conda-env/bin/yapf",
"python.linting.banditPath": "/tmp/.current-conda-env/bin/bandit",
"python.linting.flake8Path": "/tmp/.current-conda-env/bin/flake8",
"python.linting.mypyPath": "/tmp/.current-conda-env/bin/mypy",
"python.linting.pycodestylePath": "/tmp/.current-conda-env/bin/pycodestyle",
"python.linting.pydocstylePath": "/tmp/.current-conda-env/bin/pydocstyle",
"python.linting.pylintPath": "/tmp/.current-conda-env/bin/pylint"
"python.defaultInterpreterPath": "/tmp/.current-conda-env/bin/python"
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion image/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"C_Cpp.intelliSenseEngine": "disabled",
"C_Cpp.configurationWarnings": "disabled",
"C_Cpp.autoAddFileAssociations": false,
"clang-format.fallbackStyle": "none",
"clangFormat.fallbackStyle": "none",
"extensions.ignoreRecommendations": true,
"files.associations": {
"*.cu": "cuda-cpp",
"*.cuh": "cuda-cpp",
Expand Down

0 comments on commit 855f478

Please sign in to comment.