{"record":{"id":"43a34ac88c7851de","repo":"zed-industries/zed","slug":"unexpected-non-command-action-in-inlay-hint-label-part","errorCode":null,"errorMessage":"unexpected non-command action in inlay hint label part","messagePattern":"unexpected non-command action in inlay hint label part","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/project/src/lsp_command.rs","lineNumber":4184,"sourceCode":"                                                    range.end.row,\n                                                    range.end.column,\n                                                )),\n                                            ),\n                                        },\n                                    )),\n                                    None => None,\n                                }\n                            },\n                            command: match part.command {\n                                Some(command) => {\n                                    let action = LspStore::deserialize_code_action(command)\n                                        .context(\"invalid command in inlay hint label part\")?;\n                                    match action.lsp_action {\n                                        LspAction::Command(command) => {\n                                            Some((action.server_id, command))\n                                        }\n                                        LspAction::Action(_) | LspAction::CodeLens(_) => {\n                                            anyhow::bail!(\n                                                \"unexpected non-command action in inlay hint label part\"\n                                            )\n                                        }\n                                    }\n                                }\n                                None => None,\n                            },\n                        });\n                    }\n\n                    InlayHintLabel::LabelParts(label_parts)\n                }\n            },\n            padding_left: message_hint.padding_left,\n            padding_right: message_hint.padding_right,\n            kind: message_hint\n                .kind\n                .as_deref()","sourceCodeStart":4166,"sourceCodeEnd":4202,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/project/src/lsp_command.rs#L4166-L4202","documentation":"A validation guard in the LSP inlay-hint label part mapper: while converting protocol label parts into GPUI elements, a part arrived with a `command` field whose serialized action did not decode into any known Zed action. The `Some(command)` arm tries to resolve the command to an Action and this sentinel error rejects the unexpected/non-command payload instead of silently dropping it. The input at fault is the command payload inside a single label part sent by the language server.","triggerScenarios":"Thrown at crates/project/src/lsp_command.rs:4184 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Treat the unresolvable command as a no-op and render the label part without the action, downgrading this error to a logged warning","Update the action deserialization table so the command name/method sent by the server maps to a known Action","Report the offending language server and command payload upstream so the mapping can be added"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-09-12T19:35:53.743Z","contentChangedAt":"2026-09-12T19:35:53.743Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}