Skip to content

Add option for navto to exclude built-in libs and files from node_modules #48194

Closed
microsoft/vscode
#192798
@mjbvz

Description

@mjbvz

Feature request

🔎 Search Terms

  • navto
  • go to symbol in workspace
  • tsserver

Request

Currently navto includes all known symbols in a project. This include both symbols from the stdlib and from node_modules. However the most common use case for navto in my experience is jumping to another symbol within my code.

I propose we add new options to navto that let us exclude:

  • Symbols from the standard library
  • Any symbols from node_modules

This could be exposed as either a single new option on the request that's called something like justMyCode, or as two separate options for more fine grained control. In either case, we would expose the option(s) to users in the VS Code settings UI

Extracted microsoft/vscode#46718 as the most common use case there seems to be excluding files under node_modules

Metadata

Metadata

Assignees

Labels

Fix AvailableA PR has been opened for this issueIn DiscussionNot yet reached consensusSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions