Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
*onHoverRef(docAnalysis, position) {
const refValueJsonPath = docAnalysis.GetJsonPathFromJsonReferenceAt(position);
if (refValueJsonPath) {
for (const location of docAnalysis.GetDefinitionLocations(refValueJsonPath)) {
yield {
language: "yaml",
value: yaml_ast_parser_1.safeDump(location.value, {})
};
}
} // else {console.log("found nothing that looks like a JSON reference"); return null; }
}
*onHoverJsonPath(docAnalysis, position) {
export function Stringify(object: T): string {
return "---\n" + yamlAst.safeDump(object, { skipInvalid: true });
}