Skip to content

Commit fc41b3c

Browse files
committed
Move newline output inside editor installation functions for proper spacing
- [Image] remove empty line after 'building'. add empty line after 'installing..'
1 parent 90b21f9 commit fc41b3c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎install.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ function Install-ToEditor($idx) {
234234

235235
Stop-Spinner $spinner $cmdSuccess
236236

237+
Write-Host ""
237238
if ($cmdSuccess) {
238239
if ($targetScheme) {
239240
Write-Host "Updated successfully! Please reload the window or restart the editor for changes to take effect."
@@ -245,7 +246,6 @@ function Install-ToEditor($idx) {
245246
}
246247
}
247248

248-
Write-Host ""
249249
if ($choice -eq 'a' -or $choice -eq 'A') {
250250
for ($i = 0; $i -lt $availableEditors.Count; $i++) {
251251
Install-ToEditor $i

‎install.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,20 +206,21 @@ install_to_editor() {
206206

207207
if ! $editor_cmd --install-extension "$VSIX_FILE" --force > /dev/null 2>&1; then
208208
stop_spinner $SPINNER_PID 1
209+
echo ""
209210
echo "Error: Failed to install to $editor_name."
210211
return 1
211212
fi
212213

213214
stop_spinner $SPINNER_PID 0
214215

216+
echo ""
215217
if [ -n "$TARGET_SCHEME" ]; then
216218
echo "Updated successfully! Please reload the window or restart the editor for changes to take effect."
217219
else
218220
echo "Successfully installed to $editor_name!"
219221
fi
220222
}
221223

222-
echo ""
223224
if [[ "$choice" == "a" || "$choice" == "A" ]]; then
224225
for i in "${!AVAILABLE_EDITORS[@]}"; do
225226
install_to_editor $i

0 commit comments

Comments
 (0)