I want a tsssercmd to extract a selected identifier (function, const, class, type, etc...) to other new file.
{
command: "extractAndCreateFile",
file: "./main.js",
location: {
line: 2, col: 10
},
toFile: "./sum.js"
}
And the above resuest returns:
- textChanges for
main.js
- textChanges for
sum.js