-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add sane VSCode local settings and recommended extensions (#540)
* Add vscode config. It recommends extensions and also modifies some settings with problematic defaults * Install eslint and pylance plugins, set gdb path in stone * More comments * Add black formatter and mypy checker * keep working * Fix import error for pylance devel * Add ros dist packages and format on save --------- Co-authored-by: umroverPerception <[email protected]>
- Loading branch information
1 parent
3c7b9ca
commit f310e07
Showing
3 changed files
with
55 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-vscode.cpptools", | ||
"ms-vscode.cmake-tools", | ||
"ms-python.vscode-pylance", | ||
"ms-python.black-formatter", | ||
"dbaeumer.vscode-eslint", | ||
"redhat.vscode-xml", | ||
"redhat.vscode-yaml", | ||
"llvm-vs-code-extensions.vscode-clangd", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
//// Cmake | ||
// Catkin only works with Make... ideally we could use Ninja | ||
"cmake.generator": "Unix Makefiles", | ||
// Set to the catkin build directory | ||
"cmake.buildDirectory": "../../build/mrover", | ||
// We want catkin to configure | ||
// VSCode will try to use its own toolchain and ignore the catkin profile | ||
"cmake.configureOnOpen": false, | ||
"cmake.configureOnEdit": false, | ||
"cmake.automaticReconfigure": false, | ||
"cmake.debugConfig": { | ||
"miDebuggerPath": "/usr/bin/gdb", | ||
}, | ||
//// 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, | ||
// ~/catkin_ws/devel/lib/python3/dist-packages is already in PYTHONPATH, | ||
// but Pylance currently has a bug where it cannot handle the symlinks in it. | ||
// Below we are just putting directly where those symlinks go | ||
"python.analysis.extraPaths": [ | ||
"/opt/ros/noetic/lib/python3/dist-packages", | ||
"../../devel/.private/mrover/lib/python3/dist-packages", | ||
], | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
}, | ||
// We use mypy for this, see style.sh | ||
"python.analysis.typeCheckingMode": "off", | ||
//// Miscellaneous | ||
"redhat.telemetry.enabled": false, | ||
"editor.formatOnSave": true, | ||
} |