-
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
update task schema for installed extensions & plugins #6492
Conversation
@elaihau I start testing with npm. Initially , when I put the "{}", I can see that the task require "type", "label" and "command". I start to put the type "npm" and if I check again what is missing, the "Label" and "command" are missing, it just proposed "script". If I don't put a label, I will not see it when I select from the quick-open -> Run Task Second issue: where is one of: |
@lmcbout |
@RomanNikitenko |
@lmcbout List of the suggestions for @elaihau please correct me if I'm wrong |
@RomanNikitenko
@lmcbout |
@lmcbout
Therefore, when users start typing in the editor, Theia has no idea of which schema should be used in the content assist. That's why
To sum up, content assist assumes the task being entered into |
d6b3ab6
to
39ea9f1
Compare
@elaihau I mean, at the moment it looks like: https://youtu.be/b3aWdFABIpE ============================================= Is it possible? Are there any problems? |
Hi Roman @RomanNikitenko , thank you for the feedback ! Is "the type of the If the missing part is "type of the property", yes we can improve it by changing the TaskDefinition interface and possibly a few lines of plugin-ext in Theia. I can work on it today. |
@elaihau |
thanks for the clarification. let me see if i can manage implementing it with a small change. if it turns out too big i will let you know. |
@RomanNikitenko you were right, I did not have the "postinstall" in the package.json, it works now @elaihau should we take care of te following on a separate PR? Question 2: If I remove the label from "tasks.json", the label still shows on the menu "Task run", but when executing it, it puts an error on the server side: |
@lmcbout
I believe this config (i.e., type, script, & label) does not match any of the schemas defined in Theia, as Theia does not support having "label" in configurations that customize detected tasks ... |
- With this change, Theia processes task definitions contributed by extensions and plugins, and updates the task schema. - resolves #6485 Signed-off-by: Liang Huang <[email protected]>
39ea9f1
to
3ba3520
Compare
What @RomanNikitenko suggested has been included in the lastest patch. Also created #6507 for adding what @lmcbout suggested in theia. |
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.
Tested after update for npm
and typescript-language-features
vs code extensions and for shell
task: works well for me!
The descried case has been fixed.
The improvement has been applied.
@elaihau thank you very much!
I don't think so, the first 3 things ( |
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.
If you look, you are still getting a warning that your task config is incomplete so as a user I do not expect my task to be working correctly until the mandatory fields are met.
You need to pay attention to see the squiggling line under the begin "{", I find it not enough intuitive . If everyone is happy, then I am OK with it.
Otherwise, it works fine. Thanks @elaihau
You are right @lmcbout - a task config that only has "type" and "command" is considered incomplete, and we should have a mechanism to prevent it (i.e., I filed #6482 for the problem. I am currently on it, and once it is in review I will add you to the reviewers list. Thank you ! |
Signed-off-by: Liang Huang [email protected]
How to test
Review checklist