I am trying to create an extension in VS Code as a beginner. The extension is a code snippet that has to access the parent function. Wherever the user enters that snippet shortcut it will (for example) print the parent function name.
Here is the basic code for better understanding. The following code is the part of snippets.json in which I am writing the basic snippet prefix.
{
"TryCatchCommand": {
"prefix": "tces",
"body": [
"console.log($FUNCTION_NAME)"
],
"description": "functio_name"
}
}
I have tried multiple things up to now but was not able to find anything.