How to get RStudio-stop icon in Visual Studio Code - visual-studio-code

I have used to watch the red icon in RStudio showing that a script is being executed. It is very intuitive, clear, and handy as a stop button.
Red stop icon in RStudio
How can I get a similar icon in Visual Studio Code using the R extension, indicating the (R)terminal is running some code? Or are the missing + sings a reliable indicator of a running process? However, they do not work as a stop button, obviously.
The settings for the R extension do not give any relevant results with #ext:REditorSupport.r stop or #ext:REditorSupport.r buttonor #ext:REditorSupport.r running.

Related

visual studio code bash missing error trace

I'm using Julia on Visual Studio Code. I just found that the error trace is missing if I toggle bash up and down. If no toggle action is done, nothing went wrong, which is not possible for me.
Did anybody ever encounter this before? I'm sure it's a problem with Visual Studio Code because I tried toggle in another bash and the output is trimmed.
Taking this shell as example, a full output is what I need, but when I click 'toggle the panel' (marked red) to editor window and then return to shell, the full output is trimmed, like this. Most part will be lost, sometimes in the middle, sometimes at the beginning.

VS Code 1.15.1 The Run Code Toolbar Not Appear in Green Color as It Used to

I need a help. I read VSC Debugging doc and about launch.json. Nothing has helped me so far when searching for an answer on this specific issue in STO and VS Code documentation.
I've been annoyed, frustrated by this little bug in my Visual Studio Code 1.15.1. I worked on python project and things were good and with the run code triangle toolbar on the top right appeared in green color. Then I worked on C project. But when I wanted to go back working on a python project, the run code toolbar did not appear in green color like it used to. I've never changed anything in the setting.
the run code toolbar/button appeared in green color
the run code toolbar/button not appeared in green color
Do I need to install AutoLaunch 2.0.3 (Automatically run tasks in tasks.json or launch config in launch.json ) in order to get the green color back on the Run Code button/toolbar?
I just want simply the green color back. What should I do to get that green color back on the run code triangle toolbar? What setting I should change? I was thinking uninstalling my VS Code and reinstalling it should solve this issue.
Thanks in advance.

VS Code debugging insanity

VS Code Version: 1.47.3 running on OSX Catalina 10.15.3
I've been debugging the current extension project for the past few days without any issues.
Then suddenly, insanity enters my life.
The debugger is still running. Breakpoints have all turned to hollow circles and say they are unbound. The code still stop on these breakpoints, but the line is no longer highlighted, just has a greyish outline, and the variables now show their definition, not their values.
I feel like I have hit a keyboard shortcut and switched to some obscure, unhelpful debug mode, but I cannot find a setting or shortcut that describes doing such a thing.
What did I do, how do I get back to normal debugging? Can anyone help?
Here's screenshot, the debugger is running, the grey outline box is usually filled yellow, or green, the breakpoint is usually a filled circle, and mouse over usually shows the value on the variable, not any more :-(
Tried changing many settings, nothing worked.
Then deleted the node_module folder and ran npm install, et voila!
What changed in there I have no idea. Nothing was installed or removed for some time, but there you are, the mysteries of VS Code debugging.

Code not showing up when opening Visual Studio from Unity

I am a newcomer when it comes to Unity. I was following along with this online course. At one point, I had to write a C# script. So, I created one and doubled clicked it to edit it with Visual Studio. However when Visual Studio opened, all I could see was a essentially a blank screen. I couldn't see any code. Does anyone know the fix?
Thank you
Did you create it inside like this ... In Unity>ProjectWindow>AssetsFolder>RightClick>Create>C#Script.Then double click to open it.It will open up a script containing Start() and Update() method.If you could not find this.Restart and try.This is to test and try script for Unity scripting.
So this is way too late for the original post but maybe someone else will find this useful. So you did everything you were supposed to and even see the automated code with everything it should have in the inspector, but when you go and run the code whether clicking the actual script in the asset>scripts or clicking the open button in the inspector the same problem persists... blank uneditable screen.
I think you may just need to run updates on Visual Studio and/or if on a Mac maybe you need to log back into Microsoft. To do this just click the Visual Studio tab and click check for updates. Usually, you will also see an update suggestion in the top center of the screen. Run the updates and let it restart visual studio. Once you reopen visual studio at this time if you are on a Mac it should ask you to log into Microsoft. Your code might show up now.

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.
It should be possible to make it transparent:
Put this into settings.json:
"workbench.colorCustomizations": {
"progressBar.background": "#fff0",
}
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.
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.
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
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.
(Click on the picture to enlarge)
Perform the below changes in Visual Studio Code preferences settings
Disable Auto update
Disable Auto update of extensions
Disable error reporting service