Repository navigation
docs: fix code block line highlighting after docs reformats - #55097
Merged
Merged
Conversation
Several highlighted code blocks in the IPC and preload tutorials had their line-highlight ranges drift when the docs code blocks were auto-formatted (the `import/order` blank line added in #42113, and the if/else collapse in #38260), so the highlights now land one line off from the code they were meant to call out. Update the ranges to point back at the originally highlighted code without changing the code blocks themselves. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E
The Playwright examples in automated-testing.md lost a line when their two `require` statements were merged, leaving the highlights one line late, and the code signing examples replaced a two-line certificate option with a `windowsSign` object while keeping the old two-line ranges. Point the highlights back at the intended code and cover the whole `windowsSign` object. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E
dsanders11
approved these changes
Oct 18, 2026
3 tasks done
jkleinsc
approved these changes
Oct 19, 2026
|
No Release Notes |
This was referenced Oct 19, 2026
Contributor
|
I have automatically backported this PR to "44-x-y", please check out #55102 |
Contributor
|
I have automatically backported this PR to "43-x-y", please check out #55103 |
Contributor
|
I have automatically backported this PR to "42-x-y", please check out #55104 |
Contributor
|
I have automatically backported this PR to "45-x-y", please check out #55105 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by David Babenko-Sanders · Slack thread
This updates line-highlight ranges in the IPC and preload tutorials that drifted when the docs code blocks were automatically reformatted, so they point at the same code they highlighted originally, without touching the code blocks themselves. An audit of every highlighted block in
docs/showed the oxfmt reformat (#54140) didn't shift any ranges; the drift came from the earlier lint autofixes, mainly theimport/orderblank line added in #42113 (plus an if/else collapse in #38260). It also fixes ranges in the automated testing and code signing guides that drifted after later content edits (#41081, #41535), and it supersedes #55086 (#55086), which fixed the preload tutorial by changing the code instead.Description of Change
See above.
docs/tutorial/tutorial-3-preload.md:{2,8-10}->{3,9-11}and{1,15}->{1,16};docs/tutorial/ipc.md:{6-13,25}->{7-12,24}and{11-26}->{12-27};docs/tutorial/automated-testing.md:{5}->{4}and{6-7}->{5-6};docs/tutorial/code-signing.md:{10-11}->{10-14}and{12-13}->{12-16}.Checklist
Release Notes
Notes: none
🤖 Generated with Claude Code
https://claude.ai/code/session_01A9enZ3jn8BveASiB5p9G1E