Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

376
Views
Vscode autocomplete not working in javascript file

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.

code to show autocomplete not working

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.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

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:

enter image description here

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:

enter image description here

On this page you can trust the folder you clone your own repositories into, or alternatively the whole drive.

enter image description here

about 4 years ago · Juan Pablo Isaza Report

0

Just now i learn how to fixed: is the restricted mode. See this post to know how to fixed.

In summary:

  1. Open settings (ctrl+,)
  2. Write in the nav bar: "security.workspace.trust.enabled"
  3. Disable the check box (turn to false)
  4. Done.
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!