未验证 提交 1d026880 编写于 作者: R Rob Lourens 提交者: GitHub

Merge pull request #74003 from skprabhanjan/fix-72938

Fix-72938 Searching in specified path only works when another folder is already open
......@@ -274,7 +274,7 @@ export class QueryBuilder {
* Split search paths (./ or ../ or absolute paths in the includePatterns) into absolute paths and globs applied to those paths
*/
private expandSearchPathPatterns(searchPaths: string[]): ISearchPathPattern[] {
if (this.workspaceContextService.getWorkbenchState() === WorkbenchState.EMPTY || !searchPaths || !searchPaths.length) {
if (!searchPaths || !searchPaths.length) {
// No workspace => ignore search paths
return [];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册