Repository navigation
feat: add protocol show me example - #2057
Merged
Merged
Conversation
Adds a "Protocol" Show Me example that registers a custom scheme with protocol.handle and loads a page from it in a BrowserWindow. Ports #1365 to the rewrite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WZZBj8LEfu5U2Zk4x49PLL
MarshallOfSound
approved these changes
Oct 30, 2026
erickzhao
approved these changes
Oct 30, 2026
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 Samuel Attard · Slack thread
This adds a "Protocol" entry to the Show Me examples, with a fiddle that registers a custom scheme through
protocol.handleand opens a window on a page served by that handler. It re-implements #1365 (which fixes #1364) on top of the rewrite that landed in #2032: the example now lives under the app's bundled static Show Me folder and is listed in the shared examples list that drives both the menu and the command palette, and the existing examples test now expects the extra entry and checks that its folder loads. Like the original, the example usesprotocol.handle, so it needs Electron 25 or later; I haven't run it in a real Electron window because the Electron binary download was blocked in this environment.🤖 Generated with Claude Code
https://claude.ai/code/session_01WZZBj8LEfu5U2Zk4x49PLL