I had this problem too. You can fix with the following:
- Open the command palette (Ctrl + Shift + P)
- Run
Disable All Installed Extensions - Then run
Enable All Extensions. - Restart Visual Studio Code
You can make sure again that the extensions are enabled.
Answer from MarioG8 on Stack OverflowI had this problem too. You can fix with the following:
- Open the command palette (Ctrl + Shift + P)
- Run
Disable All Installed Extensions - Then run
Enable All Extensions. - Restart Visual Studio Code
You can make sure again that the extensions are enabled.
i too had a similar issue, and found (thru trial and error and multiple stackoverflow searches)
fix
- toggle Developer Tools once you have vs code open
- select the
consoletab - scroll thru the log, paying close attention to the red errors/
- if it's extension errors, open file explorer and go
$drive:\Users\Yourname.vscode\extensions - delete any problem extensions
- Restart VSCode and all should be well (at least for me it was)
cheers and happy coding :)
Unable to install or update extensions in VS Code
python extensions not working
Extensions are not loaded if there is an invalid extensions.json file in extensions folder
Not able to install extensions in Visual Studio Code (VSC) - Stack Overflow
Videos
I had the same problem;
Go to 'c:\Users\hp\.vscode\extensions\extensions.json' on your computer and rename the extensions.json file you can add an extra s to make it extensionss.json. Then go back to vscode and install the extension of your choice, a new extensions.json file will be created.
You can go ahead and delete the extensionss.json file.
All the best!
Hello @Rishant Jayaswal ,
Welcome to Microsoft Q&A forum.
The error message indicates that operation not permitted, perhaps it’s blocked by permission limitation. Please find the file(s) that mentioned in error message, right-click the file, select Properties, switch to Security tab, select the corresponding user, click Edit…, confirm that the account has been assigned the proper permissions.
Try to reboot your machine and directly open VS Code and install the extension(in case the file is locked by other program/process).
Besides, is there any permission limitation on your machine? Are you using any antivirus software/extension/proxy? If so, please try to disable them temporarily and test again.
Best Regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
I have a virtualbox VM, and this vm shares a folder with my actual pc. This folder is what contains all the code. I have vscode on my actual pc to edit that folder's contents, but the code runs on the VM.
The VM is ubuntu 20.04, my actual pc is Windows 10, and the VM's python version is 3.8.10
yesterday, vscode suddenly started crashing. The icon turned into the default windows exe file icon, and whenever I close it, an error window appears. Back then I didn't think much of it, but on second thought, I should have saved that error message. Anyways, I thought that reinstalling vscode would work. After reinstalling, my old extensions are already installed for some reason, but they aren't working. The highlighting and autocomplete functions aren't working, and would display "Loading..." when I hover over stuff:
the field names should be blue, the "models." stuff should be green, and it should not say "Loading..."I found a stackoverflow post with a similar issue: https://stackoverflow.com/questions/50389852/visual-studio-code-intellisense-not-working
The post doesn't seem to have a solution, but I tried most of their suggestions. I tried reinstalling the extensions, changing them to pre-release, uninstalling pylance, etc. to no avail. Some replies talked about the path to the python executable, but I feel like that doesn't really apply in my case, since even though I have python on my actual pc, all the code is ran by the python executable on the VM. In any case, I still selected an interpreter at the bottom right of the screen.
Here are my current extensions:
Here is my current settings.json:
A friend suggested looking at the logs for python language server, and there indeed seems to be an error every time I open vscode, though I'm not sure what's causing this:
at the end of my ropes here, so any help is greatly appreciated. Please let me know if you need more information.
Clear up the c:/Users/{user}/.vscode/extensions/ folder and it's going to work.
The error message is pretty clear. It says the file permissions on your ~/.vscode/extensions/extensions.json file don't allow for VS Code to modify the file when installing extensions. Somehow the file permissions got changed. Modify the file permissions so that other programs like VS Code can write to the file.