-
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
Fix Task.execution
instantiation
#6533
Conversation
@eclipse-theia/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.
execution.command = processTaskDto.command; | ||
|
||
return execution; | ||
export function getProcessExecution(taskDto: TaskDto): theia.ProcessExecution { |
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.
The function takes TaskDto
now, so unnecessary assertion in the place of call
taskDto.options || {}); | ||
} | ||
|
||
export function getShellExecution(taskDto: TaskDto): theia.ShellExecution { |
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.
@tolusha The changes are related to plugin system, so I would say that it's very important to test the changes using some plugin (with task resolver I guess, as a resolver uses converting mechanism). I tested your changes for |
@RomanNikitenko |
@tolusha |
6f0df24
to
1285f06
Compare
@tolusha thanks in advance! |
It is ready to test. |
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 changes:
- 3
detected
tasks provided by the test extension from the PR description
and che
tasks
work well for me!
Signed-off-by: Anatoliy Bazko <abazko@redhat.com>
d71c4a6
to
1d7244e
Compare
@tolusha @RomanNikitenko @elaihau Can this PR affect built-in VS Code extensions like npm, gulp, grant and so on? I just don't see that anyone tested against them. If you think that it is not necessary and you are sure everything is alright please go ahead to merge. |
To be honest, I don't know which VS Code extension would be good for testing these changes. |
I tested So, I checked that at converting the configurations:
Looks good to me and I can run these configurations using the PR changes. |
I hope you and @elaihau become experts in this area :) please merge, i don't think we will get better opinion |
Signed-off-by: Anatoliy Bazko abazko@redhat.com
What it does
Fix
Task.execution
instantiation.ShellExecution
andProcessExecution
contain additional logic in their constructors.That's why is it necessary to use them.
[1] https://github.com/theia-ide/theia/blob/ab/fixTaskExecution/packages/plugin-ext/src/plugin/types-impl.ts#L1461
[2] https://github.com/eclipse-theia/theia/blob/ab/fixTaskExecution/packages/plugin-ext/src/plugin/types-impl.ts#L1368
How to test
The following tasks should work:
Review checklist
Reminder for reviewers