in web/src/components/panels/payload-panel.js [150:172]
_initCodeEditor() {
this._editor = new EditorView({
extensions: [
basicSetup,
Prec.highest(
keymap.of([
indentWithTab,
{key: 'Enter', run: insertNewlineAndIndent, shift: () => true},
])
),
linter(jsonParseLinter()),
lintGutter(),
EditorView.lineWrapping,
EditorView.updateListener.of((v) => {
if (v.docChanged) {
this._notifyPayloadChange(this.payload);
}
}),
json(),
],
parent: this.shadowRoot.querySelector('#otlp-data-input'),
});
}