jvolkman / intellij-protobuf-editor

Protocol Buffers for IntelliJ-based IDEs
Apache License 2.0
122 stars 15 forks source link

Relative imports #71

Closed nvx closed 2 years ago

nvx commented 2 years ago

When using protoc, it's often common to include . as an include path. What this means is that proto files can import other files that are in the same directory as them. This also seems to be the default behaviour when using buf.build

The current workaround is to define the proto include path to include the folder where your protos are. The issue with this approach is that sometimes proto filenames are fairly generic like "enums.proto", so if you have multiple directories with proto files in your project this all falls apart.

Allowing a tickbox for relative imports would fix this.

jvolkman commented 2 years ago

Hi @nvx, Development of this plugin as moved to Jetbrains, so you'd need to file this as a feature request with them (they don't look here).

nvx commented 2 years ago

ah that makes sense, cheers