Building a better online editor for TypeScript
blog.val.town
Building a better online editor for TypeScript
1–10 of 13 posts
Re: Building a better online editor for TypeScript
#2Re: Building a better online editor for TypeScript
#3The client (CodeMirror) connects to the language server though WebSocket to offer semantic highlighting and some custom LSP actions related to compiling and serving the project.
Re: Building a better online editor for TypeScript
#4Why not Monaco? It works great. https://github.com/microsoft/monaco-editor
Re: Building a better online editor for TypeScript
#5Re: Building a better online editor for TypeScript
#6Leaning on CloudFlare Containers seems like a good balance though. But im wondering what the limits are, some packages are very large and require more than just Javascript (e.g node gyp).
(Personally I ended up hosting a web-only VS code served as static files. Luckily i dont need to support Deno syntax so the built-in Typescript language server worked fine.)
Re: Building a better online editor for TypeScript
#7Why not Monaco? It works great. https://github.com/microsoft/monaco-editor
They really just should have used Monaco. This will be a burden to maintain and won't be a core differentiator.
Re: Building a better online editor for TypeScript
#8Why not Monaco? It works great. https://github.com/microsoft/monaco-editor
The title doesn't make it clear that it's actually about TypeScript plus Deno-specific syntax — and Deno's LSP doesn't run in a worker [1]. [1]: https://github.com/denoland/vscode_deno/issues/515
They could have also contributed to the effort. You can also add types to monaco typescript. I don’t see a need for a Deno specific LSP, am I missing something?
Re: Building a better online editor for TypeScript
#9Earlier quoted context omitted.
The title doesn't make it clear that it's actually about TypeScript plus Deno-specific syntax — and Deno's LSP doesn't run in a worker [1]. [1]: https://github.com/denoland/vscode_deno/issues/515
yet They could have also contributed to the effort. You can also add types to monaco typescript. I don’t see a need for a Deno specific LSP, am I missing something?
The second biggest deal is that the Deno LSP also includes a full linter, versus for the full experience the Typescript not-quite-LSP is often paired with the ESLint VS Code extension and a large eslint install.
Deno's LSP is also sometimes preferred for being a single Rust binary that runs quicker than Typescript's not-quite-LSP (plus or minus ESLint's non-LSP). It may be interesting to see how Golang Typescript's real-LSP fares in comparison in a future version.
Re: Building a better online editor for TypeScript
#10Why not Monaco? It works great. https://github.com/microsoft/monaco-editor