I'm trying to make a simple convenience thing for a web project.
Basically, we have it set up to have multiple project roots, for different pages in our web app.
I want to make it so when we launch, it just goes to the page based on what workspace files we're currently looking at.
It's simple to get what workspace we're looking at, as we can get it via the variable ${workspaceFolderBasename}, however, mapping that to the webpaths is proving troublesome.
I thought I would just be able to make an object map, and use key in extension.commandvariable.remember, but that doesn't resolve variables such as ${workspaceFolderBasename}.
It just tries to get the key literally as ${workspaceFolderBasename}.
So if I set "store": { "${workspaceFolderBasename}": "path/to/file" }, it gets it, but that's not useful.
Here is a mockup launch.json, to sort of show what I'm trying to do:
I'm trying to make a simple convenience thing for a web project. Basically, we have it set up to have multiple project roots, for different pages in our web app. I want to make it so when we launch, it just goes to the page based on what workspace files we're currently looking at.
It's simple to get what workspace we're looking at, as we can get it via the variable
${workspaceFolderBasename}
, however, mapping that to the webpaths is proving troublesome. I thought I would just be able to make an object map, and use key inextension.commandvariable.remember
, but that doesn't resolve variables such as${workspaceFolderBasename}
. It just tries to get the key literally as${workspaceFolderBasename}
. So if I set"store": { "${workspaceFolderBasename}": "path/to/file" }
, it gets it, but that's not useful.Here is a mockup launch.json, to sort of show what I'm trying to do:
Is there a better way to do this?