question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Go to definition, auto complete, very slow in VSC March 2019 release w/ Styled Components

See original GitHub issue

I’m not sure where this belongs but it does appear to be an issue of interaction between vscode-styled-components and the latest “March 2019” release of VSC.

Here are some examples:

Go to definition triggers the file header loading bar for 2-3 seconds before yielding the go-to-definition “pop-up” screen. Reverting to February makes everything snappy again (millseconds):

image

Auto complete takes a few seconds of “Loading…” in March release while typing attributes inside of a styled component’s JSX. After reverting to February release everything take milliseconds again.

image

Am I doing something wrong? Any ideas? More info needed?

I tried doing verbose logging around electron_node tsserver.js which is showing the high CPU when this happens (I followed the guide here: https://github.com/Microsoft/vscode/issues/63630#issuecomment-442690063) but as not seeing any errors. The logs did confirm that things were taking multiple seconds to come back from tsserver during the above 2 situations (and NOT on older versions of VSC).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Jaymun723commented, May 9, 2019

I experience lag with styled component and found that @types/styled-component depends on @types/react-native which makes conflicts with the “dom” lib in typescript. The lag was gone when I uninstall @types/styled-component and replace it with a simple module declaration (declare module 'styled-component').

1reaction
johnculvinercommented, Apr 15, 2019

Hey thanks, glad to see it isn’t just me. Hopefully this will get fixed soon in VSC. I say we leave this open until it is just so people see it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode autocomplete and IntelliSense are not working within ...
When I type code inside backticks(`), template literals, VSCode doesn't show IntelliSense or autocomplete. I installed a bunch of snippet ...
Read more >
May 2022 (version 1.68) - Visual Studio Code
Learn what is new in the Visual Studio Code May 2022 Release (1.68)
Read more >
PyDev Releases
Nodes are no longer auto-expanded in quick outline if the outline is too big. Properly computing local import target location on code completion...
Read more >
RStudio Release Notes
(#12047); RStudio now provides autocompletion results for packages used but not ... is checked and the user has not requested a specific version...
Read more >
Untitled
Mesin bordir komputer portable, Book release invitations, ... Row and column define, She went quietly charlie winston, The cliff house arkansas, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found