Daniel
Daniel

Reputation: 473

Blue moving bar in VSCode

Does anyone know what the blue moving line (from left to right) in Visual Studio Code means?

It appears relatively often, especially when reactivating from hibernation mode. Looks like some background processes are currently active. Once the bar shows, it doesn't go away until I restart the program.

Upvotes: 31

Views: 10317

Answers (6)

VonC
VonC

Reputation: 1329672

With VSCode 1.52 (Nov. 2020), that moving bar should be more explicit (and cancellable!)

Progress for long running operations in Explorer

We now show progress in the Explorer and Status bar for long running File operations (longer than 500ms).

There is also an inital support for cancelling these long running operations.

This should be particularly helpful when copying large folders or downloading resources from remote.

Explorer Progress -- https://media.githubusercontent.com/media/microsoft/vscode-docs/vnext/release-notes/images/1_52/explorer-progress.gif (Click on the picture to enlarge)

Upvotes: 0

Srinivas
Srinivas

Reputation: 1

Perform the below changes in Visual Studio Code preferences settings

  1. Disable Auto update
  2. Disable Auto update of extensions
  3. Disable error reporting service

Upvotes: -3

rushil
rushil

Reputation: 576

This occurs because when you try to find some file or functions which are not available, VsCode continues to keep trying to get that function and redirect cursor over there. So the loader stays there forever. The solution is to make VsCode look for something which it can find.

Just ctrl+click on any function which is available. Also you can ctrl+click on function where it is defined itself so it will directly point on it and loader will be removed.

For example you have below function

public function GetUSer(){

}

So just ctrl+click on GetUser and the loader will vanish. No need to restart VsCode

Edit for js users :

Let say you have defined a variable :

var userName = 'Test';

And you have used it somewhere in the code

var userNameLength = userName.length

So just ctrl+click on userName where we get the length. It will go to defination (where the variable is defined) and the progress bar will be gone.

Upvotes: 12

Alex
Alex

Reputation: 67929

It should be possible to make it transparent:

Put this into settings.json:

"workbench.colorCustomizations": {
    "progressBar.background": "#fff0",
}

Upvotes: 20

tyhunt99
tyhunt99

Reputation: 109

Like previous answer said it is a loading indicator which occurs when vscode is attempting to look something up like a function definition or trying to lint.

You cannot hide it that I am aware of but you can get it to go away obviously by relaunching vscode. It is also limited to the current editor window so you can split your editor and then close the one with the indicator.

Upvotes: 10

Chirag Bhansali
Chirag Bhansali

Reputation: 2780

That is a loading indicator. It happens when something is loading or is in process. It might be constantly refreshing the file tree because of changes in the directory

Upvotes: 0

Related Questions