uiwjs / uiwjs/react-codemirror
extensions-langs no longer has language names. It uses file extensions instead
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
In version < 4.25 I could select language by name. I no longer can do that as langs has changed to file extensions.
Before:
import {langs} from "@uiw/codemirror-extensions-langs";
python = langs.python()
Now
import {langs} from "@uiw/codemirror-extensions-langs";
python = langs.py()
It would be nice if that functionality can be brought back. You can export langs and exts to let developers use whatever fits their need best.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the @uiw/codemirror-extensions-langs package exports and the current langs and exts definitions. Confirm how language-name and file-extension helpers are currently exposed. Done means developers can use both langs.python() and langs.py(), with the documented exports remaining usable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100