jvolkman / intellij-protobuf-editor

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

Plugin doesn't work on "subscription.proto" #15

Closed juggle73 closed 4 years ago

juggle73 commented 4 years ago

Goland 2020.1.3 Protocol Buffer Editor 2.0

If you create file named "subscription.proto", IDE doesn't recognise it as proto file. Magic.

jvolkman commented 4 years ago

I can't reproduce this on a new install of GoLand 2020.1.3. I think it must be something specific to your setup. Do you maybe have a custom filetype pattern matching subscription.proto registered to some other editor? Settings -> Editor -> File Types

image

juggle73 commented 4 years ago

I just created new Go project and new file

Screenshot 2020-06-08 at 18 38 43 Screenshot 2020-06-08 at 18 40 13 Screenshot 2020-06-08 at 18 45 36
jvolkman commented 4 years ago

I can reproduce this behavior by adding subscription.proto as a filename pattern to the "Text" file type. Can you check there? The pattern need not be subscription.proto, but anything that matches it (e.g., subscription.* or sub*.*). If not there, check the other file types in the list that use the same icon (document with a top-left folded corner). The file type configuration is not marked as project-specific, so I don't think creating a new project would change the behavior.

Not sure what else to say. Nothing in this plugin would be doing anything special with files named subscription.proto.

image

image

juggle73 commented 4 years ago

@jvolkman Bingo. I found subscription.proto in Text patterns. But I never added it, I know. Thank you.