Skip to content

feat: VS Code/Cursor を対話式で選択可能に#27

Open
striderkein wants to merge 1 commit intomasterfrom
feat/26
Open

feat: VS Code/Cursor を対話式で選択可能に#27
striderkein wants to merge 1 commit intomasterfrom
feat/26

Conversation

@striderkein
Copy link
Copy Markdown
Owner

@striderkein striderkein commented Jan 8, 2026

Summary

  • vscode_install.sh で VS Code と Cursor のどちらかを対話式で選択できるように変更
  • 選択に応じて設定ファイルのパスと CLI コマンドを切り替え

Test plan

  • スクリプトを実行して「1」を選択 → VS Code の設定が更新されることを確認
  • スクリプトを実行して「2」を選択 → Cursor の設定が更新されることを確認
  • 無効な入力(例: 3)でエラーメッセージが表示されることを確認

Closes #26


Note

Enables interactive selection of editor and applies settings/extensions accordingly.

  • Prompts user in vscode_install.sh to choose VS Code or Cursor, setting SETTING_DIR and EDITOR_CMD based on choice
  • Links settings.json and keybindings.json to the chosen editor's User directory and prints status
  • Uses the selected CLI (code or cursor) to install extensions from extensions and to refresh the list
  • Adds CLI existence check with tailored install instructions; exits on invalid choice
  • Removes hardcoded VS Code paths/commands in favor of generalized variables

Written by Cursor Bugbot for commit fd662b2. This will update automatically on new commits. Configure here.

- エディタ選択のプロンプトを追加
- 選択に応じて設定ファイルのパスを切り替え
- 選択に応じてCLIコマンド(code/cursor)を切り替え

Closes #26
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

done

code --list-extensions > "$SCRIPT_DIR/extensions"
"$EDITOR_CMD" --list-extensions > "$SCRIPT_DIR/extensions"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shared extensions file causes cross-editor contamination

Medium Severity

The script reads from and writes to a single shared extensions file for both VS Code and Cursor. When a user runs the script for one editor, it overwrites the extensions file with that editor's installed extensions. Running the script later for the other editor will use the wrong extension list and then overwrite it again. This causes unintended cross-contamination between the two editors' extension configurations.

Additional Locations (1)

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: vscode_install.sh で VS Code または Cursor を選択できるようにする

1 participant