Remove auto-compile toggle and compile button from playground#16741
Merged
Remove auto-compile toggle and compile button from playground#16741
Conversation
Compilation now always happens automatically on input change (400ms debounce). The Ctrl/Cmd+Enter shortcut is retained for immediate compilation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR simplifies the playground editor by removing manual compilation controls and making compilation always automatic. The changes remove unnecessary UI complexity while maintaining the ability to manually trigger compilation via keyboard shortcut.
Changes:
- Removed "Auto" toggle switch, "Compile" button, and Ctrl+Enter hint from the editor header
- Removed all related CSS for toggle switch styling and responsive behavior
- Removed autoCompile state management and related event listeners from JavaScript
- Compilation now always occurs automatically with 400ms debounce when the editor content changes
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/public/editor/index.html | Removed toggle switch and compile button UI elements from header, removed related CSS styles, and removed keyboard shortcut hint from editor panel |
| docs/public/editor/editor.js | Removed DOM references for compile button and toggle, removed autoCompile state and toggle listener, simplified update listener to always trigger auto-compile, and updated init function to unconditionally compile default content |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
Test plan
🤖 Generated with Claude Code