How to set Problems View filter from extension #1432
Unanswered
vaclavHala
asked this question in
Extension Development QnA
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an extension which has a notion of projects that can be located anywhere inside the workspace. The extension emits problem markers (
vscode.Diagnostic
) for various resources inside the projects. I'd like to provide a convenience command to the user which would show problems for selected project.To do this (I think) I need to simply focus the Problems view (I know how to do this) and then somehow set the filter to
${projectRoot}/*
(this I did not figure out how to do). Is this approach sensible or is there different better way?I have found there exists this method to set the filter, but I see no way to get to it from my extension.
Beta Was this translation helpful? Give feedback.
All reactions