Skip to content

Commit c555feb

Browse files
committed
Remove automatic editor termination during updates
1 parent 5bd2ffa commit c555feb

2 files changed

Lines changed: 2 additions & 18 deletions

File tree

‎install.ps1‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,7 @@ function Install-ToEditor($idx) {
184184
$ErrorActionPreference = "Stop"
185185

186186
if ($targetScheme) {
187-
$processName = switch ($editorCmd) {
188-
"code" { "Code" }
189-
"code-insiders" { "Code - Insiders" }
190-
"codium" { "VSCodium" }
191-
"cursor" { "Cursor" }
192-
"agy-ide" { "Antigravity" }
193-
default { $editorCmd }
194-
}
195-
Get-Process -Name $processName -ErrorAction SilentlyContinue | Stop-Process -Force
196-
Write-Host "Updated successfully! Restart extensions for changes to take effect."
187+
Write-Host "Updated successfully! Please reload the window or restart the editor for changes to take effect."
197188
} else {
198189
Write-Host "Successfully installed to $editorName!"
199190
}

‎install.sh‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,7 @@ install_to_editor() {
195195
$editor_cmd --install-extension "$VSIX_FILE" --force > /dev/null 2>&1
196196

197197
if [ -n "$TARGET_SCHEME" ]; then
198-
case "$editor_cmd" in
199-
"code") pkill -f "Visual Studio Code" || pkill -x code || killall code ;;
200-
"code-insiders") pkill -f "Visual Studio Code - Insiders" || pkill -x code-insiders || killall code-insiders ;;
201-
"codium") pkill -f "VSCodium" || pkill -x codium || killall codium ;;
202-
"cursor") pkill -f "Cursor" || pkill -x cursor || killall cursor ;;
203-
"agy-ide") pkill -f "Antigravity" || pkill -x agy-ide || killall agy-ide ;;
204-
esac >/dev/null 2>&1
205-
echo "Updated successfully! Restart editor for changes to take effect."
198+
echo "Updated successfully! Please reload the window or restart the editor for changes to take effect."
206199
else
207200
echo "Successfully installed to $editor_name!"
208201
fi

0 commit comments

Comments
 (0)