aidenybai / aidenybai/react-grab

Make protocol URL configurable for editor integration in openFile

オープン
#232 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
7.6k
フォーク
340
平均マージ
5時間 12分
マージ済み PR(30日)
6

説明

Currently, the openFile function (in packages/react-grab/src/primitives.ts) uses a hardcoded protocol URL to open files in editors, such as vscode://file/.... This limits flexibility for users who may use different flavors or versions of editors (e.g., vscode-insiders://file/..., or other editor protocols).

**Feature request:**

Allow users to customize or control the protocol URL used to open files. This could be via a configuration option, environment variable, or function parameter.

**Benefits:**

- Supports more user setups (e.g., VSCode Insiders, other editors with protocol support)
- Improves developer experience for teams with mixed editor environments
- Enables easier testing and extension for future integrations

**Proposal:**

- Abstract the protocol part of the URL in openFile and related helpers.
- Provide a way (parameter, config, env) to override the protocol.
- Update documentation to describe how users can change the protocol.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。