feat(cli): add experimental.useOSC52Copy setting#19488
Conversation
Summary of ChangesHello @scidomino, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new experimental configuration option that allows users to explicitly control the clipboard copy mechanism. By enabling Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
5a843ec to
d960a65
Compare
There was a problem hiding this comment.
Code Review
This pull request introduces a new experimental setting experimental.useOSC52Copy to allow users to force OSC 52 for clipboard copy operations. The changes are well-implemented across the configuration schema, command logic, and utility functions. The addition of corresponding documentation and tests, including a specific test for the new setting's behavior, is thorough. The code quality is good, and I don't see any critical or high-severity issues.
|
Size Change: +146 B (0%) Total Size: 24.5 MB ℹ️ View Unchanged
|
d960a65 to
5772f27
Compare
|
@scidomino - thank you very much. This works well. Regards, Lester |
Summary
Adds an experimental setting
experimental.useOSC52Copyto allow users to force the use of OSC 52 escape sequences for copying to the clipboard, bypassingclipboardy.Details
useOSC52CopytosettingsSchema.tsandsettings.schema.json.copyToClipboardincommandUtils.tsto respect this setting, bypassing the standard SSH/WSL heuristics if enabled.copyCommand.tsto pass the settings tocopyToClipboard.Related Issues
Fixes #19086
How to Validate
"experimental": { "useOSC52Copy": true }in yourconfig.json./copy.eatterminal).Pre-Merge Checklist