Why is visual studio code uninstalling a PDF on both my laptop and desktop? - visual-studio-code

Today when starting up vscode on both my laptop and desktop I got this notification popup in the lower right corner:
We have uninstalled 'tomoki1207.pdf' which was reported to be problematic.
At first on my desktop I just ignored it, but now on my laptop I am getting supsicious. I grepped my filesystem, I don't even have that tomoki1207.pdf anywhere on my filesystem (obviously not present if it was deleted but I checked my backup and it was not there)

After toggling on the developer tools and filtering for "tomoki" I found out that it was actually not a file that got "uninstalled", but it was an extension. This is the logline:
INFO Uninstalling the extension tomoki1207.pdf-0.4.1 from window 1
It was deleted because of the Event Stream vulnerability that popped up a few days ago:
https://code.visualstudio.com/blogs/2018/11/26/event-stream
https://blog.npmjs.org/post/180565383195/details-about-the-event-stream-incident

Related

Although I installed the extension in Vscode, it says "no extensions found"

I've been using Vscode for a long time, but suddenly my extensions in Vscode seem to have disappeared. I uninstalled Vscode and reinstalled it and tried to install the extensions again. Although the extensions appear to be installed in the "extensions" folder, Vscode says "no extensions found" and I can't use any of the extensions. Later, I realized there was a similar error on another computer I connected to the same Wi-Fi. What is the reason?
Vscode
Extensions Folder
I have tried uninstalling and reinstalling Vscode many times. I even did a system restore for some reason. I reset my router to restore factory default settings but it didn't change the situation.
There is nothing related in the output logs.
I deleted extensions.json and re-installed my extensions but it didn't work for me.
I got the same problem a few hours ago when I was on a different wifi.

VSCode update failures

I started having this problem a couple of months ago, I believe soon after I installed Visual Studio 2022. I am in the midst using VSCCode for an educational project (JavaScript) that will finish this weekend, so have mostly just been hoping VSCode would work until I finished. (I have not been using VS2022.)
The first time I had this problem, I was closing VSCode and a window appeared regarding some updates. After maybe 10 seconds I received a failure message. After that, I could not start VSCode.
I tried to uninstall VSCode, but it would not work. I tried to install VSCode from the main URL (Download for Windows Stable Build), but it would fail to install with a message about "Not being able to rename or write to a file".
I next tried the System Installer link on the /Download page, but I received the same message. I next tried the User Installer link on this page, and it worked. I could launch VSCode again, but the icon in the toolbar was just a white page instead of the VSCode icon.
I don't exactly remember when, but at some point, perhaps with manual updates from the Help toolbar in VSCode, the VSCode icon reappeared in the toolbar.
But then a few days ago, when closing VSCode the window appeared again regarding some updates, then the failure message, and then VSCode would not start. I tried the various download steps again, but only the User Installer would work. And again, just the blank page for an icon in the toolbar. So just leaving everything open for now!
After this weekend, I am hoping to fix this issue. But hoping someone knows that the problem is.
I am running Windows 10 Pro (up to date), and have the blue dot telling me I can upgrade to Windows 11.
Since VSCode is working, maybe I can do a complete un-install. Or perhaps upgrade to Windows 11, or maybe a complete clean install of Windows 10 or 11.
Has anyone else had this issue?
Thanks!

VSCode issue after removing GitHub- Cant access old folder directories

I tried installing GitHub on Visual Studio Code, but eventually decided to not use it. After I removed the GitHub extensions, I am no longer able to open or save files in the same manner. When I go to open a file or save one, I no longer am directed to the old folder directory from before.
A message now appears in the bottom right hand corner that says "File system provider for vscode-vfs://github/exercise-1-/Untitled-2.ipynb is not available."
I'm trying to get VSCode to return back to the way it was prior to installing GitHub. Any ideas what may be causing this?
Seems I just needed to click the icon in the bottom left with a head on it (accounts) and log out of my GitHub account. Then close Visual Studio entirely and reopen. Everything seems to be running as it did prior to the GitHub installation.

Receiving error message 'Extension host terminated unexpectedly.' in Visual Studio Code

I have been looking around and I haven't found any answers to my issue.
I keep getting this error "Extension host terminated unexpectedly." and I have tried removing all of my extensions, reinstalling the program, trying different versions of vscode including the insider versions.
The way I get this isssue isn't from trying to use the debugger or trying to use some sort of extension, as I said before I removed all of them and the error keeps on coming back, it's simply from opening the application. I'm not entirely sure how to continue? I have had to use another editor because the error just doesn't go away. I will just have to wait for another update of Visual Studio Code I assume? I've had the issue since tuesday this week, guessing since the latest update.
Above is the error message I get. It is closed by esc but reappears very shortly after, every time.
When I open developer tools, this is what I find in the console.
Running vscode from command prompt with Code.exe --disable-extensions doesn't help.
Visual Studio Code version: 1.16.1
I appreciate any help.
Linking my github issue on Microsoft/vscode as reference
I had the same error after updating vsc to v. 1.31.0.
Disabling Live Server Extension worked for me.
Here's the error i'm getting having the extension enabled.
I started getting this error when vscode automatically updated to March 2020 (version 1.44). I have tried various suggestions given in the forum and over the internet but none of them worked.
What worked for me: I downloaded January 2020 (version 1.42) build from https://code.visualstudio.com/updates/v1_42 and ran over the previous installation without uninstalling and surprisingly, the error disappeared and all extensions are loading and working properly.
I tried following things and non of them worked:
I disabled all the installed extension from GUI.
uninstalled all the extension and installed again.
removed the left-over extensions from Windows %USERPROFILE%.vscode\extensions.
tried launching from the command prompt with --disable-extensions option.
Linking my github issue on Microsoft/vscode as reference.
It ended up being one of the base extensions that runs on startup that was the root of the problem.
In my case the git in extensions folder was causing it.
"git.enabled": false was not doing the trick so I had to remove the git folder altogether for the error to disappear.
In my case, I used typescript-hero extension. Disabling this extension fixed my problem.
It's temporal fix but maybe will help somebody.
I disabled all the extensions with name Live for example Live Server, Live Share etc and restarted my vscode again and it worked for me.
For me this was happening due to HTML CSS Support extension. so i removed it and restarted vs code and voila! it worked!
I had to uninstall few extensions related to Java (debugger for java, Test runner for java, extension pack for java etc) to make the error go away.
Click on the developer tool option that popups and see if it has the extension which is causing this error.
I got same issue and it was because of Color Highlight Extension. I just uninstalled Color Highlight Extension and its working fine and NO ERROR.
Me too. My failure has no "Code":
Extension host terminated unexpectedly. Code: null Signal: SIGABRT
MessageService.ts
I recently ran into the same error message after accepting a permission to run a program on the extension livepreview. It corrupted all other extensions where it could not find the commands. I deleted all extension files and reinstalled the other extensions without a problem. I tried liveserver again but It never prompted me again for permissions and still, the error message keeps occurring. I'm assuming liveserver was trying to ask the computer permission to run a local server after which is still accepted but something else is interfering with the computer being able to translate from the program to actually building and accessing the local server.
In my case, the live server extension was causing this issue in 1.31.0v of VS Code. After uninstalling the extension it started working correctly.
In my case it was from the extension "Todo Tree". It was breaking on a particularly large file in my project (13.7mb), with the error saying the file was over the max-size for a node-buffer (used by the C regex matcher).
Resolved the issue by disabling the extension.
I also opened an issue for it here: https://github.com/Gruntfuggly/todo-tree/issues/135
I had same problem with following error in my VSCode console.
`1: node::DecodeWrite
2: node::InternalCallbackScope::Close
3: v8::internal::VirtualMemory::TakeControl
4: v8::internal::PerThreadAssertScope<4,1>::PerThreadAssertScope<4,1>
5: v8::internal::operator<<
6: v8::internal::operator<<
7: 00000073ECF04481`
I solved it by uninstalling Angular Console extension. Not sure if it was that particular extension or some other memory issue but problem went away as soon as I uninstalled that.
Remove all Extensions which are located in a per user extensions folder. Depending on your platform, the location is in the following folder:
Windows %USERPROFILE%\.vscode\extensions
macOS
~/.vscode/extensions
Linux ~/.vscode/extensions
Restart vscode and start installing extensions.
I am not sure why this caused , but the Antivirus was throwing popups that something like extensionprocess.js file was repaired.
Disabled the Antivirus and re-installed Vscode and it was back to normal.
Hope this helps.
Here is what helped me:
Ctrl+Shift+P --> type: "Disable"
and click Disable all installed extensions
(alternatively click Disable all installed extensions for this Workspace)
Then go to extensions panel on the left and re-enable slowly those that you really need.
See which extension (or their combination) triggers that error.
It will be highly appreciated which extenstion/combination you'll find guilty as there may be several of them, and different in time...
for me, it was code runner extension I just disabled it.

VSCode ran once on install, won't run or install again

I'm running this on Windows 7 SP1 with most (if not all) current patches. I have administrative permissions on this machine.
The first time I ran VSCodeSetup.exe, it ran the installer for several minutes then launched the actual application.
I got called into a surprise meeting, so I closed it thinking I'd look at it again later.
However, when I returned to my computer and tried to launch it, I found no evidence that it was actually installed... no desktop icon, no entry in the start menu, no Explorer integration...
I tried running VSCodeSetup.exe again, but all it does it show the installer screen for a split second, which then vanishes.
Since then, I've tried the suggestions outlined in VSCode Installation Failed - Failed to extract installer to install the application, even going so far as to run Update.exe --uninstall followed by running VSCodeSetup.exe again, but nothing has worked.
I even tried disabling my antivirus software and running the installer again, to no avail.
Does anyone know what I can do to get VSCode working again?
According to the comments and answers to Install VSCode in a specific folder, Visual Studio Code installs itself to %LOCALAPPDATA%\Code on Windows.
While I'm not sure why it didn't register itself with Explorer, I can at least create a shortcut to %LOCALAPPDATA%\Code\bin\code.cmd (with icon %LOCALAPPDATA%\Code\app.ico) to get it working again.
Or remove the directory entirely and run VSCodeSetup.exe to install it again, which still doesn't add Explorer integration... but this time at least the PATH now has code in it.
On windows VSCode is installed as Code.exe and its located in your
C:\Users\<windows-user>\AppData\Local\Code\app-<version-number>\Code.exe
or
C:\Users\John\AppData\Local\Code\app-0.5.0\Code.exe