-
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
Support preLaunchTask and postDebugTask #6247
Conversation
@tolusha ready for review? |
@akosyakov [1] https://github.com/theia-ide/theia/blob/ab/debugtasks/packages/task/src/node/task-server.ts#L35 |
/cc @RomanNikitenko |
cc @eclipse-theia/task-extension please see #6247 (comment) |
@tolusha @akosyakov |
I am about to submit changes |
@akosyakov @RomanNikitenko |
@tolusha please rely on review from @elaihau and @RomanNikitenko for the task extension |
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 think we should avoid using timeout for deletion of tasks.
Otherwise it leads to the bug: after completion of a task, the task is considered as running
during timeout. You can check it using Terminal => Show Running Tasks.
080150e
to
a4345ae
Compare
@elaihau @RomanNikitenko |
@tolusha |
@elaihau [1] https://github.com/eclipse-theia/theia/blob/ab/debugtasks/packages/debug/src/browser/debug-session-manager.ts#L410 |
@tolusha |
@ShimonBenYair |
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 tested the following scenarios in my local env:
- single root workspace, configured task
- multi root workspace, configured task
- single root workspace, detected task
- multi root workspace, detected task
All worked except for one thing. Please see GIF below (kingly ignore the error message - it was caused by my settings):
As shown, the task "npm: lintAAA" was successfully started, however the problem matcher was not resolved and therefore the warning in task output was not parsed, and no markers were created in the problems view.
When I ran the task "npm: lintAAA" alone I was getting:
Also, I didn't see the prompt that asked users for problem matcher definitions, if the task was started from the launch config:
I revisited |
@elaihau Thank you for review. It was very helpful |
@elaihau |
@elaihau Here is some clarification
Fixed: If problem matcher is configured then it will be used.
Won't fix: If problem matcher isn't configured and task is run from a launch config then menu to select problem matcher won't be shown. Like in VS Code. |
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 tested the following:
- running custom configured task
- running detected
tsc
task - running configured
tsc
task - running debug configuration with
preLaunchTask
: the task is started, prompt that asked users for problem matcher definitions is not displayed. I checked - VS Code behavior is the same.
The PR changes approach of displaying labels for TaskRunQuickOpenItem
and TaskConfigureQuickOpenItem
s for configured tasks - I checked - VS Code behavior is the same
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.
changes to the debug and plugin extensions look good to me
not sure when @elaihau has a chance to have a look, from comments above it looks like happy too now
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 tested one more time and confirm the problems it used to have are fixed. Thank you for your work !
I am going to squash commits and merge. |
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
6ae6257
to
2fe7f56
Compare
Hi, will this change be released on version 12 of Theia ? |
Yes, this change will be part of Theia release |
Signed-off-by: Anatoliy Bazko abazko@redhat.com
What it does
It adds support for
preLaunchTask
andpostDebugTask
https://code.visualstudio.com/docs/editor/debugging#_launchjson-attributes
Reference issue
#3409
How to test
preLaunchTask
andpostDebugTask
Review checklist
Reminder for reviewers