1
Fork 0

Use $message_type as the tag

`type` turned out to be controversial.
This commit is contained in:
Jeremy Fitzhardinge 2023-10-13 15:50:01 -07:00
parent da3df9c201
commit 8f0845862c
15 changed files with 36 additions and 36 deletions

View file

@ -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>),