I attempted to develop an extension for vscode that requires reading the pasteImage.parth
variable from the ./vscode/settings.json file
{
"pasteImage.path": "${workspaceRoot}/assets/images"
}
In my attempt to retrieve the variable using
vscode.workspace.getConfiguration()
function, I used the following code:
let folderPathFromConfig = vscode.workspace.getConfiguration('pasteImage')['path'];
However, it returned ${workspaceRoot}/assets/images
instead of resolving ${workspaceRoot}
to the actual path of the workspace root. How can I achieve this?
Appreciate any guidance on this matter!