diff --git a/src/app/components/generator/McdocRenderer.tsx b/src/app/components/generator/McdocRenderer.tsx
index 98766a5f..dc224765 100644
--- a/src/app/components/generator/McdocRenderer.tsx
+++ b/src/app/components/generator/McdocRenderer.tsx
@@ -2,7 +2,7 @@ import * as core from '@spyglassmc/core'
import type { JsonNode } from '@spyglassmc/json'
import * as json from '@spyglassmc/json'
import { JsonArrayNode, JsonBooleanNode, JsonNumberNode, JsonObjectNode, JsonStringNode } from '@spyglassmc/json'
-import type { ListType, LiteralType, McdocType, NumericType, PrimitiveArrayType, StringType, UnionType } from '@spyglassmc/mcdoc'
+import type { ListType, LiteralType, McdocType, NumericType, PrimitiveArrayType, StringType, TupleType, UnionType } from '@spyglassmc/mcdoc'
import { TypeDefSymbolData } from '@spyglassmc/mcdoc/lib/binder/index.js'
import type { McdocCheckerContext, SimplifiedEnum, SimplifiedMcdocType, SimplifiedMcdocTypeNoUnion, SimplifiedStructType, SimplifyValueNode } from '@spyglassmc/mcdoc/lib/runtime/checker/index.js'
import { simplify } from '@spyglassmc/mcdoc/lib/runtime/checker/index.js'
@@ -41,7 +41,6 @@ interface HeadProps extends Props {
optional?: boolean
}
function Head({ type, optional, node, makeEdit, ctx }: HeadProps) {
- const { locale } = useLocale()
if (type.kind === 'string') {
return
}
@@ -57,21 +56,18 @@ function Head({ type, optional, node, makeEdit, ctx }: HeadProps) {
if (type.kind === 'union') {
return
}
- if (type.kind === 'struct' && optional) {
- if (node && JsonObjectNode.is(node)) {
- return
- } else {
- return
- }
+ if (type.kind === 'struct') {
+ return
}
if (type.kind === 'list' || type.kind === 'byte_array' || type.kind === 'int_array' || type.kind === 'long_array') {
return
}
- // console.warn('Unhandled head', type)
+ if (type.kind === 'tuple') {
+ return <>>
+ }
+ if (type.kind === 'literal') {
+ return
+ }
return <>>
}
@@ -107,10 +103,10 @@ function StringHead({ type, node, makeEdit, ctx }: StringHeadProps) {
const datalistId = `mcdoc_completions_${hexId()}`
return <>
- {completions &&