Skip to content

Commit

Permalink
Add vscode config. It recommends extensions and also modifies some se…
Browse files Browse the repository at this point in the history
…ttings with problematic defaults
  • Loading branch information
qhdwight committed Sep 23, 2023
1 parent 3c7b9ca commit 86d5e2c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
# Python Byte-compiled / optimized / DLL files
# Python
__pycache__/
*.py[cod]
*$py.class
.mypy_cache/
*.egg-info/
/venv/

# Common IDE's, ideally this should be in global gitignore per user
.vscode/
.idea/
/cmake-build*/
.cache/
cmake-build*/
/build/

#GUI Files
# GUI Files
node_modules/
/src/teleop/gui/dist/
/src/teleop/gui/src/static/map
Expand All @@ -21,19 +24,8 @@ yarn-error.log*
# Bag Files
/bags/

# Catkin
/build/
/devel/
/logs/

# Moteus
moteus-cal*

# CSV
*.csv

# Virtual Environment
/venv/

# clangd Output
.cache/
13 changes: 13 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"recommendations": [
"ms-python.python",
"ms-vscode.cpptools",
"ms-vscode.cmake-tools",
"redhat.vscode-xml",
"redhat.vscode-yaml",
"llvm-vs-code-extensions.vscode-clangd",
],
"unwantedRecommendations": [
"ms-vscode.cpptools-extension-pack",
],
}
26 changes: 26 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
//// Cmake
"cmake.generator": "Unix Makefiles",
"cmake.buildDirectory": "${workspaceFolder}/../../build/mrover",
// We want catkin to configure
"cmake.configureOnOpen": false,
"cmake.configureOnEdit": false,
"cmake.automaticReconfigure": false,
//// Microsoft C++
// Disable since clangd is used instead
"C_Cpp.intelliSenseEngine": "disabled",
//// Python
"python.analysis.inlayHints.variableTypes": true,
"python.analysis.inlayHints.callArgumentNames": "all",
"python.analysis.inlayHints.functionReturnTypes": true,
"python.autoComplete.extraPaths": [
"/opt/ros/noetic/lib/python3/dist-packages",
"${workspaceFolder}/../../devel/lib/python3/dist-packages",
],
"python.analysis.extraPaths": [
"/opt/ros/noetic/lib/python3/dist-packages",
"${workspaceFolder}/../../devel/lib/python3/dist-packages",
],
//// Miscellaneous
"redhat.telemetry.enabled": false,
}

0 comments on commit 86d5e2c

Please sign in to comment.