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

"Go to Definition" support for multiple directories #153

Description

@lutherjohnrichards

Hi,

I have a proto folder at /Users/userx/project/proto and am trying to import google types from: /Users/userx/google/proto. For the sake of the issue, lets say I am trying to import date.proto from /Users/userx/google/proto/google/type/date.proto.

I have set my --proto_path appropriately, so the imports do not give me errors (ie. they point to the correct google files). Here is my --proto_path in settings.json:

"protoc": {
        "options": [
            "--proto_path=/Users/userx/google/proto",
        ]
    },

Below is my example code:

syntax = "proto3";

package somepackage;

import "google/type/date.proto";

However, when I try to Go to definition or Peek definition on my import line, I get the error No definition found for date.proto.

I am aware of #12, but this is not a solution as this issue only covers local imports, meaning I am able to Go to Definition for imports inside of my /Users/userx/project/proto directory, but as soon as I want to step out of that directory, I can not Go to or Peek.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions