We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 751b069 commit 84a678aCopy full SHA for 84a678a
1 file changed
apps/editor/src/commands/search-files-for-context-command/utils/search-files-by-term.ts
@@ -3,6 +3,12 @@ import * as fs from 'fs'
3
import { Logger } from '@shared/utils/logger'
4
import { create_search_regex } from './create-search-regex'
5
6
+const IGNORED_FILES = new Set([
7
+ 'pnpm-lock.yaml',
8
+ 'package-lock.json',
9
+ 'yarn.lock'
10
+])
11
+
12
export const search_files_by_term = async (params: {
13
files: string[]
14
search_term: string
@@ -14,6 +20,10 @@ export const search_files_by_term = async (params: {
20
try {
15
21
const file_name = path.basename(file_path)
16
22
23
+ if (IGNORED_FILES.has(file_name)) {
24
+ continue
25
+ }
26
17
27
if (regex.test(file_name)) {
18
28
matched_files.push(file_path)
19
29
continue
0 commit comments