Skip to content
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

add '_scope' to task configuration #4452

Merged
merged 1 commit into from
Mar 5, 2019

Conversation

elaihau
Copy link
Contributor

@elaihau elaihau commented Feb 28, 2019

To align the task list display in theia with that of vscode, we need to differentiate 3 things:

  • the task type
  • where the task comes from, and
  • where the task is supposed to be run from

This change adds an optional '_scope' to the TaskConfiguration interface. Together with 'type' and '_source', we have enough number of properties to hold the information from vscode extensions.

Signed-off-by: elaihau liang.huang@ericsson.com

@elaihau elaihau changed the title add 'scope' to task configuration add '_scope' to task configuration Feb 28, 2019
@elaihau
Copy link
Contributor Author

elaihau commented Feb 28, 2019

With this change we could run tasks contributed by vscode extensions:

peek 2019-02-28 16-44

@@ -33,15 +32,12 @@ export class QuickOpenTask implements QuickOpenModel, QuickOpenHandler {
@inject(TaskService)
protected readonly taskService: TaskService;

@inject(TaskConfigurations)
protected readonly taskConfigurations: TaskConfigurations;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's 0.5.0

i'm fine with that, please be conscious when you break

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right. i will put it back. Thank you !

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are 2 more breaking changes in this PR.

I'm fine with 0.5.0 for next. There are PRs, like refactoring git to scm extension, for which it is not avoidable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@akosyakov just thinking about API breaking going under the radar, would there be a strategy to adopt in order to catch any API breakage?

I guess this could be done with our test suite, but despite all the tests we have, it seems to not be enough. Is there something that should be done?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not aware of any tools for TS allowing to check it. Even if there are I am not sure that we want to use them, since we are fine with breaking and updating the major version. It would cause a lot of noise.

Copy link
Contributor Author

@elaihau elaihau Mar 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put taskConfigurations back and commented To be removed in 0.5.0. We could leave it here for the release where other breaking changes are made. What do you think ?

@akosyakov
Copy link
Member

@elaihau Could you describe how one can test it? Do you have a repo?

@elaihau
Copy link
Contributor Author

elaihau commented Mar 1, 2019

@elaihau Could you describe how one can test it? Do you have a repo?

Following your instructions here, i copied the compiled grunt and npm extension to the plugins folder to test in Theia.

for now i only tested grunt and npm, and i will try other extensions such as gulp and jake in near future.

To align the task list display in theia with that of vscode, we need to differentiate 3 things:
- the task type
- where the task comes from, and
- where the task is supposed to be run from
This change adds an optional '_scope' to the TaskConfiguration interface. Together with 'type' and '_source', we have enough number of properties to hold the information from vscode extensions.

Signed-off-by: elaihau <liang.huang@ericsson.com>
@elaihau elaihau merged commit df62ad0 into eclipse-theia:master Mar 5, 2019
@elaihau elaihau deleted the plugin-ignore branch March 5, 2019 14:17
@akosyakov
Copy link
Member

pity, i don't have time to test it, @benoitf did you? @elaihau did anybody test if from Ericsson except you?

@elaihau
Copy link
Contributor Author

elaihau commented Mar 6, 2019

@akosyakov you are right Anton, I should have asked more people to test it before merge.
In my team Jacques @lmcbout will play with the gulp and jake extension a few days later. I am planning to test his change and ask him to test this change for me. I will keep you posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants