+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

feat(playground): embbed codemirror-lang-rome-ast #2977

Closed

Conversation

IWANABETHATGUY
Copy link
Contributor

@IWANABETHATGUY IWANABETHATGUY commented Jul 31, 2022

Summary

Fixes: #2984

  1. From fix(playground): rome ast codemirror grammar #2974 (review)

Test Plan

  1. Testing locally

@IWANABETHATGUY IWANABETHATGUY requested a review from a team July 31, 2022 13:41
@IWANABETHATGUY
Copy link
Contributor Author

@MichaReiser , I think this is what you want.

@IWANABETHATGUY
Copy link
Contributor Author

IWANABETHATGUY commented Aug 1, 2022

I build successfully locally, I have no idea what's going on with CI.

IWANABETHATGUY and others added 2 commits August 1, 2022 15:32
…pression (rome#2973)

* fix: 🐛 function expression should push new scope

* fix: 🐛 semantic scope

* fix: 🐛 remove mainn

* fix: 🐛 pop scope when leave function expr

* style: 💄 fmt

* chore: 🤖 revert

* chore: 🤖 rever

t

* test: 💍 more read test case
Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

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

Could you please check the CI? It's failing

"@codemirror/state": "6.1.0",
"@codemirror/view": "6.1.0",
"@uiw/react-codemirror": "^4.11.4",
"codemirror-lang-rome-ast": "file:./lang-rome-ast",
Copy link
Contributor

Choose a reason for hiding this comment

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

pnpm has support for workspaces, which we should use for this particular case: https://pnpm.io/pnpm-workspace_yaml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will check this out when I have time, converting it to draft now.

"@codemirror/view": "6.0.0",
"@lezer/generator": "^1.0.0",
"codemirror": "^6.0.0",
"rome": "0.7.0-next.f6510d6"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"rome": "0.7.0-next.f6510d6"
"rome": "next"

},
"repository": {
"type": "git",
"url": "https://github.com/IWANABETHATGUY/lang-rome-ast"
Copy link
Contributor

Choose a reason for hiding this comment

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

I presume this is a leftover of your repo?

Comment on lines +1 to +2
node_modules
dist
Copy link
Contributor

Choose a reason for hiding this comment

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

So we know they are folders

Suggested change
node_modules
dist
node_modules/
dist/

@IWANABETHATGUY IWANABETHATGUY marked this pull request as draft August 2, 2022 07:13
leops and others added 11 commits August 2, 2022 10:44
…atch mutations (rome#2980)

* fix(rome_js_analyze): fix the removal of nodes from syntax lists in batch mutations

* address PR review

* run the configuration codegen
…ements` (rome#2981)

* fix(rome_js_analyze): improve the handling of trivia in `useBlockStatements`

* run lintdoc
Co-authored-by: Micha Reiser <micha@rome.tools>
* feat: 🎸 no-import-assign

* style: 💄 fmt

* fix: 🐛 cr issues

* docs: ✏️ update doc

* chore: 🤖 avoid unncessary cast

* chore: 🤖 lintdoc

* fix: 🐛 use ctx model api

* fix: 🐛 lint doc

* fix: 🐛 cr issue

* fix: 🐛 cr issue

* chore: 🤖 update log

* chore: 🤖 codegen configuration
@IWANABETHATGUY
Copy link
Contributor Author

This pull request is too messy, I would open it again once I found a solution.

@IWANABETHATGUY IWANABETHATGUY deleted the chore/embbed-codemirror-lang branch August 5, 2022 05:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add code mirror plugin
5 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载