-
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
Reorganize tasks when task schema is updated #6643
Conversation
from the functionality point of view the problem is fixed with this change. I will do one more round of testing after Anton's comment is addressed. |
f9f2a48
to
4ddc73d
Compare
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 in the example browser with NPM extension and Roman's test extension. It worked well.
@@ -38,6 +38,9 @@ export class JsonSchemaStore { | |||
protected readonly onSchemasChangedEmitter = new Emitter<void>(); | |||
readonly onSchemasChanged = this.onSchemasChangedEmitter.event; | |||
|
|||
protected readonly onDidChangeSchemaEmitter = new Emitter<string>(); |
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.
let's keep URI
here, clients can do toString
if it is required or check other properties
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.
code-wise looks good me
@elaihau I have not actually tested, could you have a look please?
dumb question for Roman: |
@elaihau It will be fired from https://github.com/eclipse-theia/theia/pull/6643/files#diff-c34063f85d0ae9acca8b8841309dc4a1R55 whenever content of schema is updated. |
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
4ddc73d
to
bf5dbc2
Compare
Got it. thank you for explaination. I have no more questions |
@akosyakov @elaihau I'm going to merge the PR. |
What it does
Rely on
onDidChangeTaskSchema
event to reorganize tasks configurations.Fixes #6640
How to test
Use vs code extensions with tasks (like
typescript
,npm
).Tasks should be available for running from
Terminal -> Run task
menu.Try to run them, configure and run, refresh page and run again.
Please use my forked repo for testing, it contains:
git clone https://github.com/RomanNikitenko/theia.git
cd theia/
andgit checkout reorganizeTasks
.tasks.json
file, so please open the cloned project:File=>Open...
and select the project.Terminal => Run Task
menu:you can see that only
SHELL task
is available for runningHelp
menu and selectAdd CHE task schema
you can see that now
CHE task
is available for running as well asSHELL task
.EXEC task
CHE task
andEXEC task
usingHelp
menuyou can see that the corresponding tasks are not available for running after that.
Review checklist
Reminder for reviewers
Signed-off-by: Roman Nikitenko rnikiten@redhat.com