#typescript intellisense is slow
123 messages ยท Page 1 of 1 (latest)
the first one is slow because you have type explorer enabled, the extension is amazing to debug types but having it enabled all the time will slow everything dowmn. i recommend disabling it (it will say you need to reload vscode to fully disable) and trying again
doesnt look like it
or do u mean the Pretty Typescript thing
Also not to mention
this icon looks exactly like type explorer
Its not only in vsc but also in webstorm and in fleet
That is Type Challenges extension
the url to the repository doesnt work btw
sure
what is ur github name?
Added
oh you are making a redis-om too
I am just trying out redis for the first time
one of the things that can be slowing down your typescript server is the mapped types you have, i cant really test it because i do not use the default configuration for it. what you can do however is tell vscode to let tsserver use more memory to see if that helps
Ah oke
or you can also take a look at the hint delay on your vscode config
then your issue might be the mapped types (i ran into the same issue which is why i let my tsserver use more memory)
And how do I do that?
10 is fine, faster than that wont change much
"typescript.tsserver.maxTsServerMemory" on your settings.json
How much do you have?
i have 1/4 of my ram for it but realistically 4GB should fix th issue (since the default is 3)
alr
more than 4GB on tsserver wont change much and the limitation starts to be your cpu & windows
it is still slow
one thing you can do is start using wsl to have the best speed possible
they do sometimes when it comes to windows
What can I do, buy a better cpu?
i had a discussion in this server some time ago that made me change to wsl for this same reason actually
#random message
using wsl is your best bet
if you read this conversation you will see that i was having a similar issue also due to mapping schemas over to types xd
kysely?
yea
search it up
or even here
well looking at their repository and own examples they dont do any complex mapping
they have you write down the interfaces and just provide helper types for said interfaces
og
(their own example)
but this one?
redis-om provides 0 mapping and types, you either write your own types or you dont have any
hmm
i once attempted to provide a mapper for redis-om but they refused because well it wasnt practical and was more of a hack (which i also agree)
you can see: https://github.com/redis/redis-om-node/pull/70
which is why as you commented im doing my own version of redis-om which is rly a proposal for it.
it does do type maping and as i have mentioned you also run into some issues in windows because of the mapped types
https://github.com/redis/redis-om-node/pull/188
every library that does full on mapping that im aware of encounters some issues when you are developing in windows, and if you read the conversation i sent before it is due to how bad windows IO is
yep, specially if you are on the new arm chips you wont even notice a delay, but yeah... you just hit window's io limitations
:(
highly recommend using wsl 2 tho, its what i have been using since the discussion i talked about and never ran into issues again
wth
why 2
it says there the version
:?
are you using your repository directly from wsl or just calling it remotely?
no
that way you are using it just like a rmeote server so tss is still running on windows
so how do I do it?
you clone your repository inside of the wsl vm and open it with code . inside the repository directory
that's exactly what I did
weird then
what kind of cpu do you have
16 core one
try to disable extensions, who knows maybe it will help, but there isnt much more i can do
dig deeper. ๐
?
your comment was ignorant. ๐คท๐ปโโ๏ธ
1- thats old
2- do you just come here to call people ignorant without 0 explanation to try and get attention?
I didn't call you ignorant, your comments were pretty ignorant and arrogant.
How so?
well looking at their repository and own examples they dont do any complex mapping
they have you write down the interfaces and just provide helper types for said interfaces
๐๐ป
How is that ignorant and arrogant if im just stating facts?
๐คจ
well looking at their repository and own examples they dont do any complex mapping
an arrogant opinion based on the "getting started" page. I bet you never looked under the hood.
they have you write down the interfaces and just provide helper types for said interfaces
ignorant. ๐คท๐ปโโ๏ธ
Ok so you think that just because you are a maintainer you have the rights to call people whatever you want just because they are stating the truth?
Why would i need to look under the hood for something that is in my front?
nope, I'm just calling you out for your BS, as a regular person, who happens to know that project through and through. ๐
What bs? You keep saying its bs without providing 0 proof for your arguments
If you at least would read the entire question instead of joining a server and searching for a keyword it would be way more valuable
I let the numbers and positive feedback do the talking. I don't owe you proof. you're nobody to me. ๐
what have you contributed to the ecosystem?
except for arrogant BS comments about other people's efforts?
actually you do
you made the claim, the burden of proof falls on you :)
respectfully, IDGAF ๐
he's not worth my time. just wanted to call his BS comments out. that's it. end of story.
then you aren't worth our time either. do realize that everything you said also applies to yourself
cya ๐
respectfully
if you really didn't care then you wouldn't have brought this up in the first place