Use $message_type
as the tag
`type` turned out to be controversial.
This commit is contained in:
parent
da3df9c201
commit
8f0845862c
15 changed files with 36 additions and 36 deletions
|
@ -158,7 +158,7 @@ impl JsonEmitter {
|
|||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[serde(tag = "type", rename_all = "snake_case")]
|
||||
#[serde(tag = "$message_type", rename_all = "snake_case")]
|
||||
enum EmitTyped<'a> {
|
||||
Diagnostic(Diagnostic),
|
||||
Artifact(ArtifactNotification<'a>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue