in src/extension.ts [370:385]
private updateResult() {
if (this.resultDocument && this.parsedResult) {
const resultEditor = window.visibleTextEditors.find(editor => editor.document === this.resultDocument);
if (resultEditor) {
try {
const result = this.queryEnabled && this.query ? jmespath.search(this.parsedResult, this.query) : this.parsedResult;
replaceContent(resultEditor, JSON.stringify(result, null, ' '))
.then(undefined, console.error);
} catch (err) {
if (!(err && err.name === 'ParserError')) {
// console.error(err); Ignore because jmespath sometimes fails on partial queries.
}
}
}
}
}