#typescript intellisense is slow

123 messages ยท Page 1 of 1 (latest)

steep roost
#

my type checker and error checker is slow because of this

steep roost
#

I have a repository with all the code listed here

slim bolt
# steep roost I need help

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

steep roost
#

or do u mean the Pretty Typescript thing

#

Also not to mention

slim bolt
#

this icon looks exactly like type explorer

steep roost
#

Its not only in vsc but also in webstorm and in fleet

steep roost
slim bolt
steep roost
#

oh its private I forgot

#

can I add ur github name?

slim bolt
#

sure

steep roost
#

what is ur github name?

slim bolt
#

Didas-git
You can also find it on my discord profile

steep roost
#

Added

#

oh you are making a redis-om too

#

I am just trying out redis for the first time

slim bolt
#

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

steep roost
#

Ah oke

slim bolt
#

or you can also take a look at the hint delay on your vscode config

steep roost
#

It was normal

#

delay

slim bolt
#

then your issue might be the mapped types (i ran into the same issue which is why i let my tsserver use more memory)

steep roost
#

this is it right?

slim bolt
slim bolt
steep roost
#

How much do you have?

slim bolt
#

i have 1/4 of my ram for it but realistically 4GB should fix th issue (since the default is 3)

steep roost
#

alr

slim bolt
#

more than 4GB on tsserver wont change much and the limitation starts to be your cpu & windows

steep roost
#

it is still slow

slim bolt
#

one thing you can do is start using wsl to have the best speed possible

steep roost
#

this is tbh so annoying

#

I never knew that the types would break the editor

slim bolt
steep roost
#

What can I do, buy a better cpu?

slim bolt
#

i had a discussion in this server some time ago that made me change to wsl for this same reason actually

#

#random message

slim bolt
steep roost
#

then I need to go to my bios again

#

because its blocked somehow now

slim bolt
steep roost
#

but how does kysely do this then

#

Because they do mapping too right?

slim bolt
#

kysely?

steep roost
#

yea

#

search it up

#

or even here

#
slim bolt
#

they have you write down the interfaces and just provide helper types for said interfaces

steep roost
#

og

slim bolt
#

(their own example)

steep roost
slim bolt
steep roost
#

hmm

slim bolt
#

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

steep roost
#

yea I tried my redis-om

#

on apple

#

and it seem to work smoothly

slim bolt
#

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

steep roost
#

:(

slim bolt
#

highly recommend using wsl 2 tho, its what i have been using since the discussion i talked about and never ran into issues again

steep roost
slim bolt
steep roost
#

oh the version

#

how can I see what Im using

slim bolt
steep roost
#

yea ik ๐Ÿ˜„

#

Hmm didas

#

It doesnt make a change

slim bolt
#

:?

steep roost
#

intellisense still slow

#

in wsl

slim bolt
#

are you using your repository directly from wsl or just calling it remotely?

steep roost
#

with remote explorer yea

#

that is the correct way right?

slim bolt
#

no

#

that way you are using it just like a rmeote server so tss is still running on windows

steep roost
#

so how do I do it?

slim bolt
#

you clone your repository inside of the wsl vm and open it with code . inside the repository directory

steep roost
#

that's exactly what I did

slim bolt
#

thonk weird then

steep roost
#

what kind of cpu do you have

slim bolt
#

16 core one

steep roost
#

yea same

#

ugg

#

Well that is said

#

Now I wont continue with this ;/

slim bolt
#

try to disable extensions, who knows maybe it will help, but there isnt much more i can do

muted pond
slim bolt
#

?

muted pond
#

your comment was ignorant. ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

slim bolt
#

1- thats old
2- do you just come here to call people ignorant without 0 explanation to try and get attention?

muted pond
#

I didn't call you ignorant, your comments were pretty ignorant and arrogant.

slim bolt
#

How so?

muted pond
#

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

๐Ÿ‘†๐Ÿป

slim bolt
#

How is that ignorant and arrogant if im just stating facts?
๐Ÿคจ

muted pond
#

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. ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

slim bolt
#

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?

muted pond
#

nope, I'm just calling you out for your BS, as a regular person, who happens to know that project through and through. ๐Ÿ™‚

slim bolt
#

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

muted pond
#

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?

vital estuary
muted pond
#

respectfully, IDGAF ๐Ÿ™‚
he's not worth my time. just wanted to call his BS comments out. that's it. end of story.

vital estuary
#

then you aren't worth our time either. do realize that everything you said also applies to yourself

cya ๐Ÿ‘‹

small comet
#

if you really didn't care then you wouldn't have brought this up in the first place

muted pond
#

I only cared about calling him out for his arrogant and ignorant (IMHO) comments. that's it. end of story.

#

I'm not trying to "win" an internet argument