intellij icon indicating copy to clipboard operation
intellij copied to clipboard

Intellij doesn't support *.MODULE.bazel as a file extension

Open daniel-b2c2 opened this issue 1 year ago • 1 comments

Description of the bug:

Support for syntax highlightining of MODULE.bazel files exists in intellij, however if in the case of a large project the MODULE.bazel file is split into smaller files such a blah.MODULE.bazel intellij fails to recognise this file. You can see MODULE.bazel is in the list, but no mention of the subfile patterns. This can be amended locally by devs by just adding the pattern but it would be nice if this was the default.

image

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Rename a MODULE.bazel file to blah.MODULE.bazel see how there's no syntax highlighting

Which Intellij IDE are you using? Please provide the specific version.

IntelliJ IDEA 2024.2.1 (Ultimate Edition)

What programming languages and tools are you using? Please provide specific versions.

Bazel 7 Java 21

What Bazel plugin version are you using?

2024.08.13.0.1-api-version-242

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

daniel-b2c2 avatar Oct 11 '24 12:10 daniel-b2c2

cc @fmeum

daniel-b2c2 avatar Oct 11 '24 12:10 daniel-b2c2

Is this just a matter of doing something like - https://github.com/bazelbuild/intellij/compare/master...JonathanPerry651:intellij:master

If so I'm happy to turn that into a PR

JonathanPerry651 avatar Nov 24 '24 08:11 JonathanPerry651

thank you @JonathanPerry651 , please open a PR!

tpasternak avatar Nov 25 '24 08:11 tpasternak