sachinraja / trpc-playground

playground for running tRPC queries in the browser
MIT License
288 stars 19 forks source link

Autocomplete timing in playground editor #52

Open touyu opened 1 year ago

touyu commented 1 year ago

Hi, Thank you for the useful library.

I've noticed that when writing code in the editor within the Playground, the autocomplete seems to lag by a slight moment. For instance, if there's a router named trpc.user, the autocomplete for 'user' appears as I type 'u'. Would it be possible to have the autocomplete suggestions appear as soon as I type the '.' in 'trpc.'?

MatsDK commented 12 months ago

Hi, I think this is an issue with CodeMirror's autocomplete plugin. You can trigger the autocompletion manually by pressing Ctrl+Space. You can do this after you type trpc., this should autocomplete all your queries. I hope this helps.