You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There has been an issue here without a potential solution: #13292
I don't want to give extensions the power to set their priority of loading in my VSCode I rather want myself setting a priority to some extensions I want to have loaded before the others.
For example, I have an extension that shows me saved projects (Project Manager) and I want this to be loaded at first to fast select a project before the rest is loaded because when I have selected a project the viewport will be reloaded anyway.
all other extensions would be loaded as before after these prioritised extensions.
Reacted by Marvin Heilemann, Almenon, pspaulding, Dan Grigorenko, Jens Fischer, fluffninja, Luiz Otavio Amaral Vaz, lizz, Alessandro Fragnani, Simon Siefke and 62 more
This feature would be amazing. My use case is the exact same - I'd love the ability to set Project Manager as the first extension loaded, so I can get to work right away while other extensions are still processing.
Reacted by pspaulding, Luiz Otavio Amaral Vaz, Iain Madder, Jens Fischer, Joscha Götzer, Dawid Gosławski, Paul Yiu, Thiago Braga, ItsCubeTime, Archie Adams and 2 more
I need same feature with different reason. I'm using vim extension and whenever I run vscode, I have to wait until vim extension being loaded before I start editing. It's quite annoying.
Reacted by Iain Madder, Joscha Götzer, Carl Schierig, Thiago Braga, Andreas Källberg, Gabriel Berto, Pellegatta Simone, ItsCubeTime, zheneknew, Freya Bruhin and 8 more
Commenting on this for the same reason as others, Being able to bump Project Manager to load ahead of other extensions would be a lovely way of getting to pick a project quicker.
Even with disabling most extensions within the default load, there's enough of a slow down ahead of seeing project manager load to make me sigh each time.
I‘ll take a look if there is something that can be changed to make VS Code prioritize the extension.
I didn’t look at VS Code source code yet, but maybe the excess of activationEvents may be moving it to the end. Maybe the kind of activationEvents. Maybe alphabetic reasons 😆
my issue is slightly different - i use direnv's nix integration to import project-specific dependencies into the shell environment when i cd into the project dir. however, even though i can create an extension to load the direnv environment in vscode, other extensions such as rls-vscode may still load before the environment is loaded, causing them to not work since the binary is not in the path yet. simply put, i need a way to delay the startup of other extensions until mine is loaded.
Reacted by Carlos da Costa, Pelle ten Cate, Jackson Garner, Cody Goodman, rizary, Andreas Källberg, Adam Scott, Hardy Jones, Samuel Tschiedel, Brendan Zabarauskas and 14 more
My use case would be to be able to specify which extensions take precedence over others when multiple extensions change same features.
For instance if I install IntelliJ keybinds and Vim, IntelliJ keybinds will override some of Vim's hotkeys and I'd prefer it to be the other way around so that Vim overrides the keybinds extension hotkeys.
ash lea (@ashkitten) did you manage to solved your use case? I've been looking for the solution and come to this thread. And by looking at your comment, I have same case when I want to load direnv extension before other extensions.
rizary (@rizary) I've been using the extension nix environment selector with some success. It does however force you to reload VS code whenever the environment changes.
rizary (@rizary) I've been using the extension nix environment selector with some success. It does however force you to reload VS code whenever the environment changes.
I'm using flake and I've try that extension without success. I'm in WSL2 too, and using rust-analyzer. I've tried with Haskell-language-server extension, it works after several retry. So maybe rust-analyzer didn't do retry as haskell-language server did
I had the same issue as you. If you're comfortable with defining all of your extensions in Nix, e.g. using Home Manager, you can hack around this like so:
This modifies all the extension packages to depend on the direnv extension using extensionDependencies. (Not sure if the force-disable-user-env wrapper is required or not. Feel free to try without.) All in all, not great, but it gets the job done...
Reacted by Randy Eckenrode, Samuel Tschiedel, farwyler, milahu, Juliano Solanho, ppenguin, Lucas Savva, Sofie Hanzlíková, DEATHB4DEFEAT and Ryan Cole
I do still believe this can get things up quicker and also reduce flickering for highlighting in code like with lately released typescript features but I am on a Apple Silicon now and its just that fast I do not need to disable and extension anymore its just up and running in a second. Still in a future with more and more fratures coming into code and more plugins beeing heavy lifters it will be required to have something like a loading order or manual delay
I need same feature with different reason. I'm using vim extension and whenever I run vscode, I have to wait until vim extension being loaded before I start editing. It's quite annoying.
Sometimes I make my code dirty by accident because of this
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
Reacted by Ghost4Man, Freya Bruhin, Tomas Zaluckij, Laura Avram, Eduardo Robles, peterkioko, Sandro Stikić, Ilia Timofeev, Jason, Jonas Chevalier and 14 more
Isidor Nikolic (@isidorn) This indeed a crucial feature for several use cases as many people have already expressed in this thread. Several of the cases have no known workaround
I'm also a bit confused by the guidelines linked above - they say (emphasis mine):
Here are the criteria we use to make the decision about closing a feature request:
[...]
Has the community at large expressed interest in this functionality? I.e. has it gathered more than 20 up-votes or more than 20 comments? This criterion alone covers more than 650 of the 2850 open feature requests as of right now, October 9th, 2019.
[...]
If the answer to any of the three questions is yes then we ask about affordability:
Can our team afford to implement the feature? I.e. are the costs to implement the functionality reasonable compared to the size of our team?
In summary, a feature needs to pass one of 1-3 and 4. Otherwise, we'll close it as out of scope. We'll unsubscribe from these issues to reduce the overall number of issue notifications we receive every day.
Clearly 2. is true (49 upvotes, 20 comments at the time this was closed). Thus, this would imply that the costs of implementing this are unreasonable compared to the size of the VS Code team?
I find this hard to believe. I'm well aware of the trap of saying something "must be easy" without actually putting in the work (or knowing the codebase). However, even a simple solution (like having a list of extension names in the config being loaded before the rest) seems like it would help with a lot of use-cases people have mentioned here - including mine, using extensions like Vim or VSpaceCode and wanting them to be responsible as early as possible after starting VS Code.
Reacted by Marvin Heilemann, Tomas Zaluckij, Ghost4Man, Falco, Eduardo Robles, peterkioko, Sandro Stikić, Gregory Gerasev, Aleksandar Topuzović, dboeckenhoff and 5 more
Any updates? I have the same VSCodeVim issue and would really like this feature. My computer isn't that fast and it takes ~5 seconds before Vim loads and I can actually edit the file.
I believe this issue impacts many users, but they don't know that the root cause is the extension loading order issue. From their perspective, VSCode is just unstable. Sometimes it works, sometimes they have to restart the editor.
Reacted by Ghost4Man, Marvin Heilemann, Ian Burzynski, Kjell Arne Haugland, Rebecca Turner and DEATHB4DEFEAT
Activity
keelzebub commentedon Oct 23, 2018
This feature would be amazing. My use case is the exact same - I'd love the ability to set Project Manager as the first extension loaded, so I can get to work right away while other extensions are still processing.
ackphill commentedon Mar 2, 2019
I need same feature with different reason. I'm using vim extension and whenever I run vscode, I have to wait until vim extension being loaded before I start editing. It's quite annoying.
Taoquitok commentedon Mar 26, 2019
Commenting on this for the same reason as others, Being able to bump Project Manager to load ahead of other extensions would be a lovely way of getting to pick a project quicker.
Even with disabling most extensions within the default load, there's enough of a slow down ahead of seeing project manager load to make me sigh each time.
alefragnani commentedon Mar 30, 2019
I‘ll take a look if there is something that can be changed to make VS Code prioritize the extension.
I didn’t look at VS Code source code yet, but maybe the excess of
activationEventsmay be moving it to the end. Maybe the kind ofactivationEvents. Maybe alphabetic reasons 😆Let’s see what I can find.
ashkitten commentedon Jul 29, 2019
my issue is slightly different - i use direnv's nix integration to import project-specific dependencies into the shell environment when i
cdinto the project dir. however, even though i can create an extension to load the direnv environment in vscode, other extensions such as rls-vscode may still load before the environment is loaded, causing them to not work since the binary is not in the path yet. simply put, i need a way to delay the startup of other extensions until mine is loaded.miloslavnosek commentedon Oct 25, 2019
My use case would be to be able to specify which extensions take precedence over others when multiple extensions change same features.
For instance if I install IntelliJ keybinds and Vim, IntelliJ keybinds will override some of Vim's hotkeys and I'd prefer it to be the other way around so that Vim overrides the keybinds extension hotkeys.
rizary commentedon Aug 25, 2020
ash lea (@ashkitten) did you manage to solved your use case? I've been looking for the solution and come to this thread. And by looking at your comment, I have same case when I want to load
direnvextension before other extensions.ashkitten commentedon Aug 25, 2020
no. i haven't been able to use vscode for my workflow because of this issue so i just use neovim still. bit of a shame.
anka-213 commentedon Nov 10, 2020
rizary (@rizary) I've been using the extension nix environment selector with some success. It does however force you to reload VS code whenever the environment changes.
rizary commentedon Nov 10, 2020
I'm using flake and I've try that extension without success. I'm in WSL2 too, and using rust-analyzer. I've tried with Haskell-language-server extension, it works after several retry. So maybe rust-analyzer didn't do retry as haskell-language server did
3 remaining items
PellegattaSimone commentedon Apr 23, 2021
Has anybody found a solution?
Dimfred commentedon Jul 19, 2021
This is why I am thinking of switching to neovim. That really bugs me. Would be great to have a fix for that.
impl commentedon Sep 1, 2021
ash lea (@ashkitten), rizary (@rizary),
I had the same issue as you. If you're comfortable with defining all of your extensions in Nix, e.g. using Home Manager, you can hack around this like so:
This modifies all the extension packages to depend on the direnv extension using
extensionDependencies. (Not sure if theforce-disable-user-envwrapper is required or not. Feel free to try without.) All in all, not great, but it gets the job done...muuvmuuv commentedon Sep 3, 2021
I do still believe this can get things up quicker and also reduce flickering for highlighting in code like with lately released typescript features but I am on a Apple Silicon now and its just that fast I do not need to disable and extension anymore its just up and running in a second. Still in a future with more and more fratures coming into code and more plugins beeing heavy lifters it will be required to have something like a loading order or manual delay
sisrfeng commentedon Nov 4, 2021
Sometimes I make my code dirty by accident because of this
offlinehacker commentedon Aug 30, 2022
I have implemented a workaround for vscode remote containers, where dependencies (on specific other extension) are injected on the fly while extensions are being installed. It's ugly, but it works https://github.com/xtruder/nix-devcontainer/tree/main/src/ext-preloader. Having extension priorities or at least a way how to make extension to load before other extensions, would make life so much easier.
milahu commentedon Oct 15, 2022
nix workaround with
nix-envuseful for unprivileged users (if you have no root access to the remote machine)
im sure there are prettier ways to do this, but this works ...
vscodenpa commentedon Dec 6, 2022
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!
anka-213 commentedon Dec 6, 2022
Isidor Nikolic (@isidorn) This indeed a crucial feature for several use cases as many people have already expressed in this thread. Several of the cases have no known workaround
milahu commentedon Dec 6, 2022
ideally add a process supervisor like systemd to vscode ...
similar issue: #54775 - manage multiple processes while debugging
The-Compiler commentedon Dec 6, 2022
I'm also a bit confused by the guidelines linked above - they say (emphasis mine):
Clearly 2. is true (49 upvotes, 20 comments at the time this was closed). Thus, this would imply that the costs of implementing this are unreasonable compared to the size of the VS Code team?
I find this hard to believe. I'm well aware of the trap of saying something "must be easy" without actually putting in the work (or knowing the codebase). However, even a simple solution (like having a list of extension names in the config being loaded before the rest) seems like it would help with a lot of use-cases people have mentioned here - including mine, using extensions like Vim or VSpaceCode and wanting them to be responsible as early as possible after starting VS Code.
crxyz0 commentedon Jun 10, 2023
Any updates? I have the same VSCodeVim issue and would really like this feature. My computer isn't that fast and it takes ~5 seconds before Vim loads and I can actually edit the file.
zimbatm commentedon Jun 17, 2023
I believe this issue impacts many users, but they don't know that the root cause is the extension loading order issue. From their perspective, VSCode is just unstable. Sometimes it works, sometimes they have to restart the editor.