Repository navigation
Conversation
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Potential duplicate found:
This PR has the identical title and appears to address the same feature for supporting comma-separated font family input. Since PR #50801 is the current PR, PR #50350 is likely a duplicate or earlier attempt at the same fix. You may want to check which one is more recent and whether one should be closed in favor of the other. |
4985c80 to
c24aece
Compare
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #48259
Type of change
What does this PR do?
The UI, code, and terminal font settings accepted only one family.
family()wrapped the whole input in one pair of quotes, so enteringIosevka, LXGW WenKai Monoproduced"Iosevka, LXGW WenKai Mono"閳?a single unknown family 閳?instead of a fallback stack.stack()now splits the value on commas, normalizes each segment throughfamily(), and drops empty segments:family()also trims each segment, soInter, system-uikeeps bare identifiers unquoted whileLXGW WenKai Monois quoted because it contains spaces. All three settings go throughstack(), so UI, code, and terminal fonts get the same behavior.How did you verify your code works?
Added tests to
settings font families:Custom Sans, FallbackandFira Code, monospaceproduce a joined stack with the default appendedInter, system-uikeeps bare identifiers unquotedCustom Sans, , ,Otherdrops the empty segments;,,falls back to the default stackRemoving the change makes the two new tests fail.
Screenshots / recordings
Not a layout change; this only changes how a configured value is parsed into a CSS font stack.
Checklist
Note: this targets �2; the repository default branch is dev.