I would like to know if anyone knows how to fix autocompletion in vscode. This is my problem: vscode has a code suggestion, but lately it stopped working in my javascript file I leave a picture of how it doesn't work.
On line 31 it should suggest "addEventListener" but it doesn't, does anyone know why?
I already checked that the factory application "typescrit and javascrit language features" was active. Also the file is in JS format. I also reloaded the editor with ctrl + shift + p -> developer: reload window.
From already thank you very much.
You are in restricted mode which is a security feature to protect your machine from malicious repositories. A better approach to outright disabling the feature is to trust whatever folder you normally clone your own repositories in. When you initially open a new folder you are presented with this dialog:
You can say yes here to get the functionality working, there's also a checkbox that allows you to trust the parent folder of the folder you opened as it's a common pattern to clone all your repositories in a single folder.
If you need to fine tune which folder you trust you can open "Manage Workspace Trust" from the gear menu:
On this page you can trust the folder you clone your own repositories into, or alternatively the whole drive.
Just now i learn how to fixed: is the restricted mode. See this post to know how to fixed.
In summary: