mirror of
https://github.com/CopterExpress/clover_vm.git
synced 2026-05-26 07:07:58 +00:00
Add custom dictionary for VSCode’s cSpell
This commit is contained in:
13
assets/configs/clover.txt
Normal file
13
assets/configs/clover.txt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
aruco
|
||||||
|
leds
|
||||||
|
rospy
|
||||||
|
srvs
|
||||||
|
telem
|
||||||
|
offboard
|
||||||
|
hypot
|
||||||
|
mavros
|
||||||
|
rosrun
|
||||||
|
rostime
|
||||||
|
pymavlink
|
||||||
|
mavutil
|
||||||
|
rosmsg
|
||||||
@@ -63,6 +63,11 @@
|
|||||||
"source": "{{user `assetsDir`}}/patches",
|
"source": "{{user `assetsDir`}}/patches",
|
||||||
"destination": "/tmp"
|
"destination": "/tmp"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "file",
|
||||||
|
"source": "{{user `assetsDir`}}/configs",
|
||||||
|
"destination": "/tmp"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"script": "scripts/install_software.sh",
|
"script": "scripts/install_software.sh",
|
||||||
|
|||||||
@@ -59,6 +59,15 @@ code --install-extension ms-vscode.cmake-tools
|
|||||||
code --install-extension ms-vscode.cpptools
|
code --install-extension ms-vscode.cpptools
|
||||||
code --install-extension streetsidesoftware.code-spell-checker
|
code --install-extension streetsidesoftware.code-spell-checker
|
||||||
code --install-extension eamodio.gitlens
|
code --install-extension eamodio.gitlens
|
||||||
|
|
||||||
|
echo "--- Add custom dictionary for VSCode"
|
||||||
|
sudo -E sh -c 'apt-get install -y jq moreutils'
|
||||||
|
mv /tmp/configs/clover.txt ${HOME}/.vscode/
|
||||||
|
CODE_SETTINGS="$HOME/.config/Code/User/settings.json"
|
||||||
|
cat $CODE_SETTINGS
|
||||||
|
jq '."cSpell.customUserDictionaries"=[{name:"Clover", "path": "~/.vscode/clover.txt"}]' $CODE_SETTINGS | sponge $CODE_SETTINGS
|
||||||
|
cat $CODE_SETTINGS
|
||||||
|
|
||||||
echo "--- Installing pylint"
|
echo "--- Installing pylint"
|
||||||
/usr/bin/python3 -m pip install -U pylint --user
|
/usr/bin/python3 -m pip install -U pylint --user
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user