- Fix LSP go-to-definition, references, hover, and rename for file options.
- Fix an LSP crash when organizing imports in a workspace with a file that fails to build.
- Fix LSP go-to-definition and references for the message named in an
extendblock. - Fix LSP go-to-definition, references, and rename for enum values used as option values.
- Fix the
PROTOVALIDATElint rule to check constant arguments toduration,timestamp, andmatchesin CEL expressions, such asduration('1d')or an invalid regex, which otherwise only fail when the rules are evaluated. - Add LSP completion, hover, and go-to-definition for CEL expressions in protovalidate predefined rules, including the
ruleandrulesvariables. Type-check CEL expressions against the file's messages, so that hover shows the types of fields and only the overloads a function call resolved to, and completions after an operator such asthis.name ==match the left operand's type. CEL features no longer treat strings in other options as CEL expressions. - Fix LSP document links for versioned remote plugins in
buf.gen.yaml, which pointed to a nonexistent BSR page. - Write module and Well-Known Type files to the cache as read-only, so that files opened from LSP go-to-definition cannot be accidentally edited.
- Fix LSP hover and highlighting of CEL expressions whose proto strings contain escape sequences, which placed the ranges of string literals, and of tokens after a
\uor\Uescape, wrongly. - Fix
buf build --type=Xfilters to correctly mark non-targeted files as imports. Theis_importcomment inimage.protois also updated to describe this. Image filtering now has a unified order across commands, where--pathapplies first, then--type, then--exclude-imports. Some consequences:buf build --type a.A --exclude-importsoutputs only the file that definesa.A, and no longer fails whena.Ahas a field whose type is defined in a dependency or a Well-Known Type.buf generatewithtypesno longer generates code for files kept only by reference. To generate them again, setinclude_imports: trueon the plugin or add their types.--pathnow gives the same result for an image input as for a source input, with or without--type.
- Add
ENUM_VALUE_SAME_JSON_NAMEbreaking rule to theCSR,FILE,PACKAGE, andWIRE_JSONcategories, which checks that enum values keep the same JSON name.