TypeScript integration #237
Unanswered
aboveyunhai
asked this question in
Q&A
Replies: 5 comments 19 replies
|
Hey @aboveyunhai, thanks for raising up this topic. Let me know if you have any examples, and then we can consider them into our roadmap |
5 replies
|
Here's a working in progress sandbox: |
14 replies
|
If anyone else stumbles on this thread, found another good read on monaco vs codemirror technical blog post |
0 replies
|
codemirror added LSP support last year , this is also an example |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I wonder is autocomplete avaliable in sandpack?
I see it used codemirror internally, but I did not find any apis about this feature. It's one of most important feature when we are looking for this kind of editors.
Edit:
Under @danilowoz help, I was able to create a working Sandpack typescript in next.js
https://playground-ts.vercel.app/
Source Code: https://github.com/aboveyunhai/playground-ts
Something wrong with the initial render, but once you start to edit the code or change tab (trig render basically), ts-server will start to kick in.
There are some tiny optimization to avoid recreating ts-server for each instance.
You might also be aware of some ref errors inside the code.
All reactions