Skip to content

Commit 465eef9

Browse files
committed
Revert name migration
1 parent 65301aa commit 465eef9

3 files changed

Lines changed: 2 additions & 49 deletions

File tree

‎apps/editor/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "cwc",
2+
"name": "gemini-coder",
33
"displayName": "Code Web Chat",
44
"description": "Markdown prompts for chatbots, APIs, and CLIs with seamless integration",
55
"version": "2026.1108.400",
@@ -13,7 +13,7 @@
1313
"test": "jest",
1414
"test:watch": "jest --watch"
1515
},
16-
"publisher": "codewebchat",
16+
"publisher": "robertpiosik",
1717
"homepage": "https://cwc.dev/",
1818
"repository": {
1919
"type": "git",

‎install.ps1‎

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -525,27 +525,6 @@ foreach ($i in $indices) {
525525

526526
$ok = Invoke-Step "$msg_step_install $($editor.Name)..." {
527527
& $editor.Cmd --install-extension $vsixFile.FullName --force *>$null
528-
529-
# Migrate global storage from old extension ID to new one
530-
$oldId = "robertpiosik.gemini-coder"
531-
$newId = "codewebchat.cwc"
532-
$appData = $env:APPDATA
533-
if (Test-Path $appData) {
534-
foreach ($appDir in Get-ChildItem -Path $appData -Directory) {
535-
$oldPath = Join-Path $appDir.FullName "User\globalStorage\$oldId"
536-
$newPath = Join-Path $appDir.FullName "User\globalStorage\$newId"
537-
if (Test-Path $oldPath) {
538-
if (-not (Test-Path $newPath)) {
539-
New-Item -ItemType Directory -Path $newPath -Force | Out-Null
540-
}
541-
Copy-Item -Path "$oldPath\*" -Destination $newPath -Recurse -Force -ErrorAction SilentlyContinue
542-
Remove-Item -Path $oldPath -Recurse -Force -ErrorAction SilentlyContinue
543-
}
544-
}
545-
}
546-
547-
# Uninstall old extension
548-
& $editor.Cmd --uninstall-extension $oldId *>$null
549528
}
550529

551530
Write-Host ""

‎install.sh‎

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -555,32 +555,6 @@ for i in "${indices[@]}"; do
555555
echo ""
556556
echo "$msg_error $msg_install_fail $editor_name."
557557
else
558-
# Migrate global storage and uninstall old extension
559-
old_id="robertpiosik.gemini-coder"
560-
new_id="codewebchat.cwc"
561-
config_base=""
562-
if [ "$(uname)" = "Darwin" ]; then
563-
config_base="$HOME/Library/Application Support"
564-
else
565-
config_base="${XDG_CONFIG_HOME:-$HOME/.config}"
566-
fi
567-
568-
if [ -d "$config_base" ]; then
569-
for app_dir in "$config_base"/*; do
570-
if [ -d "$app_dir" ]; then
571-
old_path="$app_dir/User/globalStorage/$old_id"
572-
new_path="$app_dir/User/globalStorage/$new_id"
573-
if [ -d "$old_path" ]; then
574-
mkdir -p "$new_path"
575-
cp -a "$old_path"/. "$new_path"/ 2>/dev/null || true
576-
rm -rf "$old_path"
577-
fi
578-
fi
579-
done
580-
fi
581-
582-
"$editor_cmd" --uninstall-extension "$old_id" >/dev/null 2>&1 || true
583-
584558
echo ""
585559
if [ "$is_update" = false ]; then
586560
echo "$msg_success $editor_name!"

0 commit comments

Comments
 (0)