Skip to content
This repository was archived by the owner on Jul 21, 2026. It is now read-only.

Add protoSrcsDir config option - #150

Open
codersasha wants to merge 6 commits into
zxh0:masterfrom
codersasha:master
Open

Add protoSrcsDir config option#150
codersasha wants to merge 6 commits into
zxh0:masterfrom
codersasha:master

Conversation

@codersasha

Copy link
Copy Markdown

Add a new config option, protoSrcsDir, which optionally limits the scope of proto file searches from {workspaceRoot}/** down to {workspaceRoot}/path/to/protos/**. This fixes an issue where autocompletion and go-to-definition calls are unuseably slow (upwards of 30 seconds) in repos with large numbers of ignored files (e.g. node_modules, bazel-out). With this fix, they are instant.

The "proper" way to fix this would be to respect VSCode's existing ignore lists in settings.json, but I'm not sure how to do that with fastglob in a way that actually improves performance. So, this solves the issue for now :)

@Qtax

Qtax commented Mar 18, 2024

Copy link
Copy Markdown

Something like this is badly needed for our monorepo. Without it "go to definition" is extremely slow, taking 10-30 seconds. Even when the definition is in the same file. 😅

Greateapot added a commit to Greateapot/vscode-proto3 that referenced this pull request Jul 17, 2024
@DrBlury

DrBlury commented Dec 9, 2025

Copy link
Copy Markdown
Collaborator

@codersasha please update the PR and I'll merge it :) Great addition!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants