Skip to content

refactor: use monaco-editor for playground#309

Merged
hardfist merged 2 commits intomainfrom
yj/refactor-playground
Aug 27, 2025
Merged

refactor: use monaco-editor for playground#309
hardfist merged 2 commits intomainfrom
yj/refactor-playground

Conversation

@hardfist
Copy link
Copy Markdown
Contributor

use monaco-editor for playground

Copilot AI review requested due to automatic review settings August 27, 2025 11:44
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 27, 2025

Deploy Preview for rslint ready!

Name Link
🔨 Latest commit c8810ac
🔍 Latest deploy log https://app.netlify.com/projects/rslint/deploys/68aefaca4941eb00081de760
😎 Deploy Preview https://deploy-preview-309--rslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Refactors the playground component to use Monaco Editor instead of a custom textarea-based editor implementation, providing better syntax highlighting, diagnostics display, and TypeScript language support.

  • Replaces custom editor with Monaco Editor for enhanced code editing experience
  • Simplifies playground architecture by removing complex custom UI components
  • Updates WASM package exports and removes debug console logs

Reviewed Changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
website/theme/components/Playground/index.tsx New simplified playground component using Monaco Editor
website/theme/components/Playground/Editor.tsx Monaco Editor wrapper component with diagnostic integration
website/theme/components/Playground/Editor.css Basic styling for Monaco Editor container
website/theme/components/Playground/index.css Layout adjustments for new playground structure
website/theme/components/Playground.tsx Removed old custom editor implementation
website/theme/components/Playground.css Removed custom editor styling
website/rspress.config.ts Added Monaco Editor webpack configuration and disabled SSG
website/package.json Added Monaco Editor dependency and updated WASM package version
website/docs/en/playground/index.mdx Updated import path for new playground structure
packages/rslint-wasm/src/worker.ts Removed debug console logs
packages/rslint-wasm/src/index.ts Improved exports and type definitions
packages/rslint-wasm/scripts/build.mjs Updated build entry point
packages/rslint-wasm/package.json Updated version and added type definitions
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@hardfist hardfist merged commit 9f8b1c7 into main Aug 27, 2025
12 checks passed
@hardfist hardfist deleted the yj/refactor-playground branch August 27, 2025 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants