نشانیها
- گالری افزونهها (VS Code API)
https://mirror-openvsx.pkg.shecan.ir/vscode/gallery - REST API
https://mirror-openvsx.pkg.shecan.ir/api/
VSCodium
فایل product.json را در پوشهٔ تنظیمات VSCodium بسازید و VSCodium را دوباره باز کنید. مسیر در Linux ~/.config/VSCodium/product.json، در macOS ~/Library/Application Support/VSCodium/product.json و در Windows %APPDATA%\VSCodium\product.json است.
~/.config/VSCodium/product.jsonJSON
{
"extensionsGallery": {
"serviceUrl": "https://mirror-openvsx.pkg.shecan.ir/vscode/gallery",
"itemUrl": "https://open-vsx.org/vscode/item",
"extensionUrlTemplate": "https://mirror-openvsx.pkg.shecan.ir/vscode/gallery/{publisher}/{name}/latest",
"resourceUrlTemplate": "https://mirror-openvsx.pkg.shecan.ir/vscode/unpkg/{publisher}/{name}/{version}/{path}"
}
}Shell
export VSCODE_GALLERY_SERVICE_URL=https://mirror-openvsx.pkg.shecan.ir/vscode/gallery
export VSCODE_GALLERY_ITEM_URL=https://open-vsx.org/vscode/item
export VSCODE_GALLERY_EXTENSION_URL_TEMPLATE='https://mirror-openvsx.pkg.shecan.ir/vscode/gallery/{publisher}/{name}/latest'
export VSCODE_GALLERY_RESOURCE_URL_TEMPLATE='https://mirror-openvsx.pkg.shecan.ir/vscode/unpkg/{publisher}/{name}/{version}/{path}'
codium --install-extension redhat.vscode-yamlcode-server
Shell
export EXTENSIONS_GALLERY='{"serviceUrl":"https://mirror-openvsx.pkg.shecan.ir/vscode/gallery","itemUrl":"https://open-vsx.org/vscode/item","extensionUrlTemplate":"https://mirror-openvsx.pkg.shecan.ir/vscode/gallery/{publisher}/{name}/latest","resourceUrlTemplate":"https://mirror-openvsx.pkg.shecan.ir/vscode/unpkg/{publisher}/{name}/{version}/{path}"}'
code-server --install-extension rust-lang.rust-analyzerدانلود مستقیم فایل VSIX
Shell
curl -fLo redhat.vscode-yaml.vsix "$(curl -fsSL https://mirror-openvsx.pkg.shecan.ir/api/redhat/vscode-yaml/latest | grep -o '"download":"[^"]*"' | cut -d'"' -f4)"نکتهها و محدودیتها
- فقط Open VSX میرور شده است. Visual Studio Marketplace مایکروسافت میرور نمیشود (شرایط استفادهٔ آن فقط محصولات خود مایکروسافت را مجاز میداند)؛ پس این راهنما برای VS Code رسمی نیست.
- Cursor و ویرایشگرهایی که سرویس افزونهٔ خودشان را دارند به میرور وصل نمیشوند.
- نشانی
itemUrlروی open-vsx.org میماند؛ فقط صفحهٔ افزونه را در مرورگر باز میکند. - نتیجهٔ جستجو و «آخرین نسخه» تا ۱۰ دقیقه نگه داشته میشود؛ نسخهای که همین الان منتشر شده ممکن است کمی دیرتر دیده شود.