codemirror-ts icon indicating copy to clipboard operation
codemirror-ts copied to clipboard

lint, hover, and autocomplete extensions for CodeMirror + TypeScript

Results 8 codemirror-ts issues
Sort by recently updated
recently updated
newest added

![CleanShot 2023-11-17 at 17 13 06@2x](https://github.com/val-town/codemirror-ts/assets/32314/2b651b67-eb78-4e7f-9dd7-68fe17e6672d) Should already be possible given the data in the hint extension, but if people want to replicate this experience we should make that possible...

enhancement

![CleanShot 2023-11-17 at 17 09 04@2x](https://github.com/val-town/codemirror-ts/assets/32314/11d822bf-8792-4456-8288-1d56f8b5f2fc) This is supported by monaco and should be available to CodeMirror users. It doesn't seem like TypeScript itself has a method to just "give...

enhancement

tshy is great, but I don't really need / want this to be a hybrid module.

There's a whole new world of information we can add to completions by using ```ts const details = typescriptEnvironment.languageService.getCompletionEntryDetails( path, idx, entry.name, {}, entry.source, {}, entry.data ); ```

![CleanShot 2023-11-17 at 17 12 05@2x](https://github.com/val-town/codemirror-ts/assets/32314/ec9b5499-dbbb-4cb3-a476-f7b33cdd706e) Here we're seeing the parameter highlighted when the cursor is on one of the references to it. We should implement this.

enhancement

Great work. Thank you for making this available. I suggest adding support for [twoslash comments](https://github.com/microsoft/TypeScript-Website/tree/v2/packages/ts-twoslasher), similar to TypeScript playground. ![image](https://github.com/val-town/codemirror-ts/assets/10176547/1af08901-37f2-4526-ba52-c76f3e786d13) You can find the implementation used by TypeScript playground here:...

A useful feature is to let you use any node modules in the editor. However, this requires 1) parsing the file, 2) querying NPM for their types (potentially`@types/package-name`) and lastly...