![]() Thanks to the test.js.map map file generated by the TypeScript compiler. (I looked a little bit into CodeSandbox's source but their repository is expectedly quite complex. Once you have the TypeScript SDK installed, adding a TypeScript code file to an. Other famous online IDEs, like CodeSandbox also must have their ways of doing it. ![]() I am slightly open to migrating away from Ace Editor for example I also know about TypeScript Playground, but this doesn't seem to have an open-source repository. This is okay for now, but I'd like to do it the 'Ace' way with a Web Worker in the format they suggest. Type: convertTypeScriptCategoryToAceType(diagnostic.getCategory()), Text: diagnostic.getMessageText().toString(), I get those diagnostics, loop over them, and add my own custom annotations to the editor: const diagnostics = getDiagnostics(code) Currently, I debounce a call to get diagnostics via a library called ts-morph, which provides developer-friendly methods for the TypeScript compiler API. It seems there is no up-to-date maintained one I'm surprised there isn't one. ![]() ![]() I understand how to add the custom listing itself in Ace it's just the actual TypeScript linter I am struggling to find. I've found an Ace-based TypeScript Playground by basarat AKA 'That TypeScript Guy' but the repo has no good README and I doubt the validator is up to date with TypeScript's newer features, as the last commit is from years ago. I'd like a way to have TypeScript syntax validation in my Ace editor. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |