val-town / codemirror-ts

lint, hover, and autocomplete extensions for CodeMirror + TypeScript
https://val-town.github.io/codemirror-ts/
ISC License
105 stars 6 forks source link

Get completion details #17

Open tmcw opened 5 months ago

tmcw commented 5 months ago

There's a whole new world of information we can add to completions by using

const details =
        typescriptEnvironment.languageService.getCompletionEntryDetails(
          path,
          idx,
          entry.name,
          {},
          entry.source,
          {},
          entry.data
        );