Skip to content

Commit 88439de

Browse files
committed
Do not ignore IDE files
1 parent 78d0ae5 commit 88439de

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

packages/core/src/codewhispererChat/constants.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ export const ignoredDirectoriesAndFiles = [
6363
'dist',
6464
'build',
6565
'out',
66-
// IDE and editor directories
67-
'.idea/',
68-
'.vscode/',
6966
// OS specific files
7067
'.DS_Store',
7168
]

packages/core/src/codewhispererChat/tools/tool_index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
},
8484
"listDirectory": {
8585
"name": "listDirectory",
86-
"description": "List the contents of a directory and its subdirectories, it will filter out build outputs such as `build/`, `out/` and `dist` and dependency directory such as `node_modules/` and IDE directories such as `.idea/`, `.vscode/`.\n * Use this tool for discovery, before using more targeted tools like fsRead.\n *Useful to try to understand the file structure before diving deeper into specific files.\n *Can be used to explore the codebase.\n *Results clearly distinguish between files, directories or symlinks with [F], [D] and [L] prefixes.",
86+
"description": "List the contents of a directory and its subdirectories, it will filter out build outputs such as `build/`, `out/` and `dist` and dependency directory such as `node_modules/`.\n * Use this tool for discovery, before using more targeted tools like fsRead.\n *Useful to try to understand the file structure before diving deeper into specific files.\n *Can be used to explore the codebase.\n *Results clearly distinguish between files, directories or symlinks with [F], [D] and [L] prefixes.",
8787
"inputSchema": {
8888
"type": "object",
8989
"properties": {

packages/core/src/testInteg/shared/utilities/workspaceUtils.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -597,12 +597,6 @@ describe('workspaceUtils', () => {
597597
assert.strictEqual(shouldIgnoreDirAndFile('node_modules', vscode.FileType.Directory), true)
598598
assert.strictEqual(shouldIgnoreDirAndFile('random_file.txt', vscode.FileType.File), false)
599599
})
600-
601-
it('handles directory patterns with trailing slash', function () {
602-
assert.strictEqual(shouldIgnoreDirAndFile('.idea', vscode.FileType.Directory), true)
603-
assert.strictEqual(shouldIgnoreDirAndFile('logs', vscode.FileType.Directory), true)
604-
assert.strictEqual(shouldIgnoreDirAndFile('.idea', vscode.FileType.File), false)
605-
})
606600
})
607601

608602
describe('findStringInDirectory', function () {

0 commit comments

Comments
 (0)