2
lorentz
1y

Exhausting all other options is a precondition for making a timeout heavily dependent on the system setup configurable according to the VSCode team. They advised us to not use NVM, to buy faster computers, to move time-consuming processes from .bashrc into .profile, before allowing us to manually make VSCode wait a bit longer. Microsoft attitude

https://github.com/microsoft/...

Comments
  • 1
    Ten seconds sound pretty long though. Does it run directly from a floppy disk?
  • 0
    @Oktokolo There are 3 general categories of reasons why shell load times may be over 10 seconds:

    - the user doesn't mind

    - the user is unable to make it faster

    - the user doesn't know what a shell is

    The third option can safely be ignored in the case of Visual Studio Code. In the other two cases, the editor should offer a configuration option instead of nosying into people's terminal setups. In fact, I'd say that in the case of a text editor that needs the shell environment to offer anything Nano doesn't, the only behavior that is acceptable as an unchangeable default is waiting until the shell is ready even if it takes 5 minutes.
  • 0
    @Oktokolo In my case, .bashrc launches a lot of daemons when I first open the terminal, so subsequent launches are very fast, and since a cold boot takes 3-5 minutes anyway this isn't really a problem. Most of the time the first program I'd like to launch is VSCode, unless I'd like to get to a browser as fast as possible and never launch the daemons. In practice, I have to start a terminal first and then close it and open VSCode, simply because they want to keep the config file experience clean or whatever other imaginary value the absence of a config option holds.
  • 1
    @lorentz Yes, it should just wait until the shell is ready no matter what - the user can kill it if they think it takes too long. No config needed for that.
  • 1
    Welcome to modern web development
Add Comment