Commit 2eaea9e
committed
feat: shared configurable scan-exclude dirs
Extract SKIP_DIRS from prompt-completions.ts and
search-ql-code.ts into a shared scan-exclude module
with a comprehensive default list of 20 directories.
The exclusion set is configurable via the env var
CODEQL_MCP_SCAN_EXCLUDE_DIRS (comma-separated).
Entries prefixed with ! remove a default (negation).
Add codeql-mcp.scanExcludeDirs VS Code setting that
the extension passes to the server as the env var.
New files:
- server/src/lib/scan-exclude.ts
- server/test/src/lib/scan-exclude.test.ts
Modified:
- server/src/prompts/prompt-completions.ts
- server/src/tools/codeql/search-ql-code.ts
- extensions/vscode/package.json
- extensions/vscode/src/bridge/environment-builder.ts
- extensions/vscode/test/bridge/environment-builder.test.ts
- server/test/src/prompts/prompt-completions.test.ts1 parent 63247cc commit 2eaea9e
File tree
10 files changed
+447
-25
lines changed- extensions/vscode
- src/bridge
- test/bridge
- server
- dist
- src
- lib
- prompts
- tools/codeql
- test/src
- lib
- prompts
10 files changed
+447
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
126 | 134 | | |
127 | 135 | | |
128 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
169 | 177 | | |
170 | 178 | | |
171 | 179 | | |
| |||
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
395 | 426 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196679 | 196679 | | |
196680 | 196680 | | |
196681 | 196681 | | |
| 196682 | + | |
| 196683 | + | |
| 196684 | + | |
| 196685 | + | |
| 196686 | + | |
| 196687 | + | |
| 196688 | + | |
| 196689 | + | |
| 196690 | + | |
| 196691 | + | |
| 196692 | + | |
| 196693 | + | |
| 196694 | + | |
| 196695 | + | |
| 196696 | + | |
| 196697 | + | |
| 196698 | + | |
| 196699 | + | |
| 196700 | + | |
| 196701 | + | |
| 196702 | + | |
| 196703 | + | |
| 196704 | + | |
| 196705 | + | |
| 196706 | + | |
| 196707 | + | |
| 196708 | + | |
| 196709 | + | |
| 196710 | + | |
| 196711 | + | |
| 196712 | + | |
| 196713 | + | |
| 196714 | + | |
| 196715 | + | |
| 196716 | + | |
| 196717 | + | |
| 196718 | + | |
| 196719 | + | |
| 196720 | + | |
| 196721 | + | |
| 196722 | + | |
196682 | 196723 | | |
196683 | 196724 | | |
196684 | 196725 | | |
196685 | 196726 | | |
196686 | 196727 | | |
196687 | | - | |
| 196728 | + | |
196688 | 196729 | | |
196689 | 196730 | | |
196690 | 196731 | | |
| |||
198130 | 198171 | | |
198131 | 198172 | | |
198132 | 198173 | | |
198133 | | - | |
198134 | | - | |
198135 | | - | |
198136 | | - | |
198137 | | - | |
198138 | | - | |
198139 | | - | |
198140 | | - | |
198141 | | - | |
| 198174 | + | |
198142 | 198175 | | |
198143 | 198176 | | |
198144 | 198177 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 43 | + | |
50 | 44 | | |
51 | 45 | | |
52 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
0 commit comments