Repository navigation
Open a class the playground hands over as #playground= - #8
Merged
Merged
Conversation
The playground's Open in Layout Editor carries its app class in the share fragment Open in Playground already writes; the editor now reads that format the other way and imports the first file as Open ABAP class does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PBPa75o3TYJo1ZCSndPFY7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PBPa75o3TYJo1ZCSndPFY7
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.
The playground's new Open in Layout Editor (abap2UI5/playground#138) hands its app class over as
#playground=<share fragment>. That is the same format Open in Playground already writes: version "2", then base64url of deflate-raw JSON[{name, source}].The editor now reads that fragment the other way round:
filesFromPlaygroundFragment()insrc/handoff.jsdecodes the fragment. It refuses unknown versions and empty or malformed payloads.openClassFromPlayground()insrc/ui/files.jsimports the first file the way Open ABAP class does, then cleans the address. It runs on load and onhashchange.test/handoff.test.mjs(4/4 pass).Without this change, the playground falls back to copying the class to the clipboard.
Generated by Claude Code