Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion install/desktop/app-vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ sudo apt install -y code
mkdir -p ~/.config/Code/User
cp ~/.local/share/omakub/configs/vscode.json ~/.config/Code/User/settings.json

CODE_NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--no-deprecation"

# Install default supported themes
code --install-extension enkia.tokyo-night
NODE_OPTIONS="$CODE_NODE_OPTIONS" code --install-extension "enkia.tokyo-night"
4 changes: 3 additions & 1 deletion themes/set-vscode-theme.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

CODE_NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--no-deprecation"

if command -v code &>/dev/null; then
code --install-extension $VSC_EXTENSION >/dev/null
NODE_OPTIONS="$CODE_NODE_OPTIONS" code --install-extension "$VSC_EXTENSION" >/dev/null
sed -i "s/\"workbench.colorTheme\": \".*\"/\"workbench.colorTheme\": \"$VSC_THEME\"/g" ~/.config/Code/User/settings.json
fi