-
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
fixed "applyTo" property in problem matcher for task output #7418
Conversation
ee92f5f
to
8d5de97
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.
please get rid of caches and use MonacoWorkpace
as a single source of the document state
b30cd22
to
2e3e202
Compare
- With this change, "applyTo" can be used as a property to control if a problem reported on a text document is applied only to open, closed or all documents. - fixed #7396 Signed-off-by: Liang Huang <[email protected]>
2e3e202
to
34713b6
Compare
code changes looks good, could someone please test it? |
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 changes look good to me 👍
I verified it using a small eslint
workspace: https://github.com/vince-fugnitto/eslint-ws,
and can see the generated problem-markers based on the applyTo
property present.
Thank you for your time @vince-fugnitto ! |
With this change, "applyTo" can be used as a property to control if a problem reported on a text document is applied only to open, closed or all documents.
fixed "applyTo" property in taskConfig.problemMatcher doesn't work properly #7396
Signed-off-by: Liang Huang [email protected]
How to test
Mine is
and the npm lintAAB is defined in package.json as follows
Close all docuements, and run the task defined in Step 1. We should be able to see all warnings & errors are displayed in the problems view.
Open one document associated with the problem markers added in Step 2. Run the task again. Once the task finishes, markers displayed in Step 2, except for those associated with the opened file, should persist. Markers associated with the opened file should not be displayed.
Please note, in this step, you could possibly still see markers associated with the opened file in the problem view, as other they could be added by other contributors.
Close all documents, update
applyTo
of the problem matcher to "openDocuments". Run the task again. Once the task finishes, markers displayed in Step 2 should not show up, because we only want errors & warnings from opened documents to be reported.When
applyTo
is "allDocuments", all parsed warnings and errors markers should be displayed in the problems view.Review checklist