Skip to content

fix: add support for fileOpener in config.json - #911

Merged
bolinfest merged 1 commit into
mainfrom
pr911
May 13, 2025
Merged

bolinfest merged 1 commit into
mainfrom
pr911

Conversation

@bolinfest

@bolinfest bolinfest commented May 13, 2025 •

Copy link
Copy Markdown
Collaborator

This PR introduces the following type:

export type FileOpenerScheme = "vscode" | "cursor" | "windsurf";

and uses it as the new type for a fileOpener option in config.json. If set, this will be used to linkify file annotations in the output using the URI-based file opener supported in VS Code-based IDEs.

Currently, this does not pass:

Updated codex-cli/tests/markdown.test.tsx to verify the new behavior. Note it required mocking supports-hyperlinks and temporarily modifying chalk.level to yield the desired output.

@bolinfest
bolinfest force-pushed the pr911 branch 4 times, most recently from 15e6c36 to 70daeb4 Compare May 13, 2025 16:32
@bolinfest
bolinfest merged commit 557f608 into main May 13, 2025
@bolinfest
bolinfest deleted the pr911 branch May 13, 2025 16:45
@github-actions github-actions Bot locked and limited conversation to collaborators May 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant