迁移 Claude/Codex/Cursor 开发环境与追溯资产
Co-Authored-By: OpenAI Codex <codex@openai.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
36
tools/cursor/install_vscode_insiders_extensions.ps1
Normal file
36
tools/cursor/install_vscode_insiders_extensions.ps1
Normal file
@@ -0,0 +1,36 @@
|
||||
# 从 VSCode Insiders 迁移到 Cursor 的扩展补装脚本
|
||||
# 自动生成;安装旧 VSCode Insiders 中已安装但 Cursor 当前缺失的扩展。
|
||||
# 旧环境 disabled 状态见 docs/ai-env-history/vscode_insiders_extensions.csv;Cursor 无稳定 CLI 持久禁用接口,需在 UI 中按清单确认。
|
||||
$ErrorActionPreference = 'Continue'
|
||||
$cursor = 'cursor'
|
||||
$timeoutSec = 90
|
||||
$extensions = @(
|
||||
"leizongmin.node-module-intellisense"
|
||||
"meezilla.json"
|
||||
"ms-dotnettools.csdevkit"
|
||||
"ms-dotnettools.csharp"
|
||||
"ms-python.vscode-pylance"
|
||||
"ms-vscode-remote.remote-ssh"
|
||||
"ms-vscode-remote.remote-ssh-edit"
|
||||
"ms-vscode.remote-explorer"
|
||||
)
|
||||
foreach ($ext in $extensions) {
|
||||
Write-Host "Installing $ext ..."
|
||||
$p = Start-Process -FilePath $cursor -ArgumentList @('--install-extension', $ext) -NoNewWindow -PassThru -Wait:$false
|
||||
if (-not $p.WaitForExit($timeoutSec * 1000)) {
|
||||
Write-Warning "Timeout installing $ext; killing process and continuing."
|
||||
try { Stop-Process -Id $p.Id -Force } catch {}
|
||||
continue
|
||||
}
|
||||
Write-Host "Finished $ext exit=$($p.ExitCode)"
|
||||
}
|
||||
|
||||
|
||||
# 以下扩展在 VSCode Insiders 同步状态中为 disabled,安装后建议在 Cursor UI 中禁用:
|
||||
# disabled-before: leizongmin.node-module-intellisense
|
||||
# disabled-before: ms-dotnettools.csdevkit
|
||||
# disabled-before: ms-dotnettools.csharp
|
||||
# disabled-before: ms-python.vscode-pylance
|
||||
# disabled-before: ms-vscode-remote.remote-ssh
|
||||
# disabled-before: ms-vscode-remote.remote-ssh-edit
|
||||
# disabled-before: ms-vscode.remote-explorer
|
||||
Reference in New Issue
Block a user