Skip to content

feat(playground): support show ast in playground#320

Merged
hardfist merged 1 commit intomainfrom
yj/show-ast
Aug 31, 2025
Merged

feat(playground): support show ast in playground#320
hardfist merged 1 commit intomainfrom
yj/show-ast

Conversation

@hardfist
Copy link
Copy Markdown
Contributor

@hardfist hardfist commented Aug 31, 2025

basic ast support, will improve the ast viewer in following pr

Copilot AI review requested due to automatic review settings August 31, 2025 16:49
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 31, 2025

Deploy Preview for rslint ready!

Name Link
🔨 Latest commit a2b5a82
🔍 Latest deploy log https://app.netlify.com/projects/rslint/deploys/68b47d20d3542f0008cb1442
😎 Deploy Preview https://deploy-preview-320--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

This PR adds AST (Abstract Syntax Tree) visualization support to the playground by integrating the actual TypeScript compiler's AST generation instead of using a placeholder implementation. The playground now displays the real AST structure for the code being linted.

Key changes:

  • Replaces placeholder AST generation with real TypeScript AST parsing using @rslint/api
  • Updates dependencies to version 0.1.12 to support the new AST functionality
  • Adds TypeScript-go patches to export necessary AST types and utilities

Reviewed Changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
website/theme/components/Playground/index.tsx Implements real AST generation using RemoteSourceFile and converts TypeScript nodes to simplified AST format
website/package.json Updates @rslint/wasm to 0.1.12 and adds @rslint/api dependency
scripts/gen-tsgo-patch.sh Adds script to generate TypeScript-go patches
packages/rslint-wasm/package.json Bumps version to 0.1.12
packages/rslint-api/package.json Adds public publish configuration
patches/typescript-go.patch Updates TypeScript-go patches to export SyntaxKind and other AST utilities
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@hardfist hardfist merged commit 042bfda into main Aug 31, 2025
17 checks passed
@hardfist hardfist deleted the yj/show-ast branch August 31, 2025 17:06
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