We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d498fe commit 2d4b14cCopy full SHA for 2d4b14c
src/webviews/src/utils/formatters/valueFormatters.ts
@@ -124,12 +124,16 @@ const formattingBuffer = (
124
}
125
126
case KeyValueFormat.Vector64Bit: {
127
+ const valueUTF = bufferToUTF8(reply)
128
try {
129
+ if (isEqualBuffers(reply, UTF8ToBuffer(valueUTF))) {
130
+ return { value: valueUTF, isValid: false }
131
+ }
132
const vector = Array.from(bufferToFloat64Array(reply.data as Uint8Array))
133
const value = JSONBigInt.stringify(vector)
134
return JSONViewer({ value, useNativeBigInt: false, ...props })
135
} catch (e) {
- return { value: bufferToUTF8(reply), isValid: false }
136
137
138
139
case KeyValueFormat.Protobuf: {
0 commit comments