Skip to content

Prevent autocomplete from importing random stuff from beyond root directory!!!! #47005

Description

@techsin
  • VSCode Version: 1.21.1
  • OS Version: Win10 64

Steps to Reproduce:

  1. write impf and press Tab.

Does this issue occur when all extensions are disabled?: Yes

Problem is that I'm trying to trigger a snippet. So I type something that I THINK would trigger that snippet. Something like impf for import ... from ....;. But it goes ahead and find 50 random functions from node_modules and if you press tab it also goes and include it at the top. Not sure why it never does so for my modules, which would be very convenient, but it always does for node_modules.

I don't understand under which scenario I'd need to add individual methods from node_modules. Usually node_modules contain whole package/libraries that you use not individual functions.

Is there a way to prevent this???

Metadata

Metadata

Assignees

Labels

javascriptJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions