Let workspaceContains trigger use rg --quiet (fixes #35236)

This commit is contained in:
Christof Marti
2017-10-12 15:59:00 -07:00
parent 49e570e136
commit b5f41b9802
7 changed files with 104 additions and 4 deletions

View File

@@ -232,13 +232,13 @@ export class ExtensionHostMain {
const query: ISearchQuery = {
folderQueries,
type: QueryType.File,
maxResults: 1,
exists: true,
includePattern: includes,
useRipgrep
};
let result = await this._diskSearch.search(query);
if (result.results.length > 0) {
if (result.limitHit) {
// a file was found matching one of the glob patterns
return (
this._extensionService.activateById(extensionId, true)