🎁 Add search to file location methods in tasks#165156
🎁 Add search to file location methods in tasks#165156meganrogge merged 11 commits intomicrosoft:mainfrom
search to file location methods in tasks#165156Conversation
Signed-off-by: Babak K. Shandiz <[email protected]>
… args Signed-off-by: Babak K. Shandiz <[email protected]>
Signed-off-by: Babak K. Shandiz <[email protected]>
Signed-off-by: Babak K. Shandiz <[email protected]>
alexr00
left a comment
There was a problem hiding this comment.
I didn't see variables in the "includes" and "excludes" section get resolved when testing this.
| { | ||
| type: 'object', | ||
| properties: { | ||
| 'include': { type: 'array', items: { type: 'string' } }, |
There was a problem hiding this comment.
When testing I didn't get any schema validation or suggestions for this object, which made it very easy to do
{
"include": "${workspaceFolder}\\extensions\\npm"
}
which doesn't work because "include" should be an array.
There was a problem hiding this comment.
Added examples to the schema which will be rendered as suggestions in the runtime.
Also, for a better experience, changed the type of include/exclude arrays to accept single values as well; i.e., they're now string | string[].
There was a problem hiding this comment.
But, I'm not sure why validation didn't work.
Signed-off-by: Babak K. Shandiz <[email protected]>
Signed-off-by: Babak K. Shandiz <[email protected]>
Signed-off-by: Babak K. Shandiz <[email protected]>
Signed-off-by: Babak K. Shandiz <[email protected]>
Signed-off-by: Babak K. Shandiz <[email protected]>
|
@alexr00 I've also added two other examples for the |
@alexr00 I'm not sure I'm getting your point, correctly. When I tested, the variables (e.g., |
|
@meganrogge @alexr00 Couldn't ask you both for the review from the side links, so could you please re-review this? |
|
@meganrogge @alexr00 We can also make the |
Signed-off-by: Babak K. Shandiz <[email protected]>
|
It had a shortcoming that when the |
I like that idea - thanks for working on this |
Signed-off-by: Babak K. Shandiz <[email protected]>
|
The |

Fixes #160771
A new
fileLocationmethod, namedsearch, is added to problem matches. The usage of this file location method is as:The
includefield is required, but theexcludeis not.To verify this PR, you can use babakks/vscode-verify-search-file-location repo as the test workspace.