-
Notifications
You must be signed in to change notification settings - Fork 28.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable substition: ${packagePath} #27162
Comments
I believe that If none of them solve your issue than please let me know for the path |
@isidorn Thanks for your quick response on this. As identified above, we are already using the
Let's take my example above. On my system I have my git repository in
Given the above example, that means I have
The request is that in launch.json, I have access to a new variable Hope this makes sense, let me know if you need more information. |
@omniscient thanks for providing more information however what you seem to be needing seems very specific for mono debugging. On the VSCode side we are language agnostic and do not provide any variable subsitition that is speicifc for some language. Due to the following leaving this open as a feature request and assiging to backlog. |
@isidorn : I am sorry to have to digress here but to be 100% clear, nowhere did I mention a programming language of any sort. What I am talking about is monolithic version control using git. Would you mind taking a 2nd look at this with that fact in mind? I would really appreciate if you could at least indicate where/what would need to be changed and how, at a high-level, it could done? Maybe I could PR it for you guys if it's not too bad? Once again, we are talking about a way to identify, that 1, we are dealing with a mono repo and 2, we have a variable that identifies the packages root folder. |
Thanks for additional clarification. This sounds like a very speicifc feature request. We accept PRs, however keep in mind that if it is too complex or too language specific we will not accept it. |
Would #25786 get the job done? It helps to get into the relative nested folders. |
I think there is a way you can do this already.
|
In the spirit of #396, please consider adding a new variable that can be used in launch.json and that will refer to the package directory (
packageRoot
) of the currently opened file within the editor.This is going to be useful to reduce the number of profiles necessary to debug each package. As an example, here's what we have to do currently such that we can debug our tape unit tests directly from the code editor:
Given that we have a mono repo structure like this:
Given we develop in Typescript and we resolve the current file name using
${fileBasenameNoExtension}
, Given we have both a "api" package and a "orm" package in a git mono repo,We are stuck doing this to debug our tests inside the code editor:
The request is for a variable that identifies the root directory of each package so that we could re-write our launch.json like this:
The text was updated successfully, but these errors were encountered: