-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Associate root folder to dynamic debug configurations #12482
Conversation
a04182b
to
f9112ae
Compare
f9112ae
to
31a99fb
Compare
The updated commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm that the changes work as expected 👍
I only have some minor feedback.
31a99fb
to
26b2a6c
Compare
The methods is the `vscode` interface `DebugConfigurationProvider` specify the parameter `folder: WorksapceFolder | undefined'. The parameter can be `undefined` in the context of a folderless setup however some plugins expect it to be present always (e.g. ms-python.python). The original implementation of dynamic debug configurations did not provide this parameter. This change associates the root folder to the contributed configurations directly after the response for the call to 'provideDebugConfigurations' and it makes sure to preserve this parameter within the pick items presented to the user. Signed-off-by: Alvaro Sanchez-Leon <[email protected]>
26b2a6c
to
aad3b80
Compare
The latest commit, is just squashing of the two related commits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
- confirmed that the code looks good, builds, lints
- confirmed that the python use-case works well
- confirmed that the multi-root use-case works well
What it does
Fixes: #12352
The methods in the
vscode
interfaceDebugConfigurationProvider
specify the parameter `folder: WorksapceFolder | undefined'.The parameter can be
undefined
in the context of afolderless
setup, however some plugins expect it to be present always (e.g. ms-python.python). The original implementation of dynamic debug configurations did not provide this parameter.This change associates the root folder to the contributed configurations directly after the response for the call to 'provideDebugConfigurations' and it makes sure to preserve this parameter within the pick items presented to the user.
With the above, dynamic configurations are able to execute programs located inside the same root.
How to test
ms-python.python
gets loaded and activatedtheia
'sExtensions
view search forpython
and install the extension with idms-python.python
python
program as shown below:https://user-images.githubusercontent.com/76971376/236043099-5a3e0b1d-1425-4b06-a3b6-bc4754980dcf.mp4
hello-multi-root-js.zip
zip
file above and usingtheia
open the multi root workspace file included in the main folderroot
folders namedoriginal
andcopy
, each root have its ownsrc
folder withjs
files ready to runhttps://user-images.githubusercontent.com/76971376/236050594-6a7f0907-6e52-40ef-a3ee-83ded4ecad80.mp4
quick access
(e.g., typing?
from command palette), Verify the successful execution of programs via extension provided dynamic debug configurations (follow the video clip below),https://user-images.githubusercontent.com/76971376/236050617-59f796d5-eabf-4a9f-a01b-d31a07cec58c.mp4
Review checklist
Reminder for reviewers