Extension details takes a long time to load when using code-server --link
See original GitHub issueOS/Web Information
- Web Browser: Brave Browser or Safari
- Local OS: MacOs Big Sur
- Remote OS: Ubuntu 20.04.2 LTS (running on GCP with around 80ms of ping to the server)
- Remote Architecture: x86_64
code-server --version
:3.11.0 4e8cd09ef0412dfc7b148b7639a692e20e4fd6dd
Steps to Reproduce
- Go to extensions and search for an extension
- Click on any extension
- Wait
Expected
The extension should load in a sensible amount of time.
Actual
Takes around 7s every time you click an extension.
Logs
Screenshot from the network tab:
Screenshot from browser’s console:
Running code-server --link -vvv
didn’t produce any helpful logs while clicking around in the extensions tab.
Notes
When restarting the server sometimes it shows a blank screen for quite some minutes until it shows anything.
Sometimes I get:
Error while parsing the 'sandbox' attribute: 'allow-downloads' is an invalid sandbox flag.
This issue can be reproduced in VS Code: No
Extensions load in under 0.5s-ish in VS Code.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Installing extension on remote host takes forever #131242
Steps to Reproduce: ssh to some remote web server (in my case it is my academic institution's High power computing server); once the...
Read more >Is Your VS Code Extension Slow? Here's How to Speed it Up!
Obviously, some take longer than others to load, because they do more. Running Extensions. What can you do if one is taking too...
Read more >Visual Studio Code Intellisense is very slow - Stack Overflow
I'm using VS Code and it's wonderful is all areas but code completion, where it is usually just too slow to be of...
Read more >FAQ - code-server v4.8.0 docs - Coder
We no longer plan to add new extensions to our legacy extension gallery. How do I install an extension? You can install extensions...
Read more >VS Code Live Server – How to Auto-Refresh Your Browser ...
In this post, I will explain the details of how it works and how to set up and configure a live server in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@code-asher lmk if I can do any extra testing there, happy to help 😄 I’m using it as my daily code editor for work, I don’t have a real need for it other than that I think it’s super cool 😆
(Sorry for the messy writing, I was taking notes here while testing 😅) I’ve read about those issues so I downgraded to 3.9.3, but made no difference. I’m located in Sicily (southern Italy) and the server is running in Frankfurt (europe-west-3). According to gcping.com there’s around 81ms of ping to the region which is more or less what I get if I ping the server from the terminal.
Running it locally in my MacOS also has the same delay, which would indicate a network issue on my side? But everything in the code editor works blazingly fast (and outside of the editor too, like web browsing, downloading stuff, watching youtube). Is this something I can measure?
If I run version 3.9.3 with Docker WITHOUT --link, the extensions’ details load up right away. If I run version 3.11.0 with Docker WITHOUT --link, the extensions’ details do NOT load, like never.
Here’s a short video of the issue running it locally on my Macbook with --link (3.11 this time, couldn’t get it to install an older version, even with the install.sh --version flag). >15s to load is not something I’m used to in this network connection, to be clear
Other notes:
On GCP:
Detected an acceptable latency of 5ms
On local:Detected an acceptable latency of 76ms
https://user-images.githubusercontent.com/14063057/127902848-e73f2e6d-8aba-4032-b171-81b5c003bb47.mov