Add custom dictionary for VSCode’s cSpell

This commit is contained in:
Oleg Kalachev
2021-06-30 01:02:16 +03:00
parent f5e3be0222
commit 4cdf3f8c18
3 changed files with 27 additions and 0 deletions

13
assets/configs/clover.txt Normal file
View File

@@ -0,0 +1,13 @@
aruco
leds
rospy
srvs
telem
offboard
hypot
mavros
rosrun
rostime
pymavlink
mavutil
rosmsg

View File

@@ -63,6 +63,11 @@
"source": "{{user `assetsDir`}}/patches",
"destination": "/tmp"
},
{
"type": "file",
"source": "{{user `assetsDir`}}/configs",
"destination": "/tmp"
},
{
"type": "shell",
"script": "scripts/install_software.sh",

View File

@@ -59,6 +59,15 @@ code --install-extension ms-vscode.cmake-tools
code --install-extension ms-vscode.cpptools
code --install-extension streetsidesoftware.code-spell-checker
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"
/usr/bin/python3 -m pip install -U pylint --user