-
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 having multiple user-defined problem matchers in tasks.json #6616
Conversation
- resolved #6567: With this change Theia support users defining a collection of problem matchers in tasks.json - added json schemas to validate the user-defined problem matchers in tasks.json - fixed the bug with task's schema to allow configured tasks and customized detected tasks in the same tasks.json Signed-off-by: Liang Huang <liang.huang@ericsson.com>
@elaihau |
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 don't have any problems anymore with quarkus configuration.
let invalidTaskConfig: TaskConfiguration | undefined; | ||
const validTaskConfigs = taskConfigs.filter(t => { | ||
const isValid = this.isTaskConfigValid(t); | ||
if (!isValid) { |
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.
@elaihau
Looks like you moved this logic to task-configurations.ts
.
The difference is:
before the changes this logic was executed every time we took the configured tasks
after: this logic is executed on events like onDidRegisterTaskDefinition
The problem is the logic is not executed when task schema is updated.
This leads to the bug, that some tasks are considered as invalid after updating task schema and are not available for running
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.
wdyt about the changes https://github.com/eclipse-theia/theia/compare/reorganizeTasks?expand=1
I'm going to test it and create the PR
The code duplication from VS Code was approved in CQ 19787
Signed-off-by: Liang Huang liang.huang@ericsson.com
How to test
prepare a workspace in a Theia setup that has detected tasks. When I tested this change I installed
npm
extension that contributes npm tasks.Open / create
.theia/tasks.json
, and create a config to customize a detected task. Add a user definedproblemMatcher
to the config, and make sure use the array. Mine wasReview checklist