Commit a778cd5
committed
feat(robot): add
Enable redirecting the analysis cache to a custom directory via the
`ROBOTCODE_CACHE_DIR` environment variable. This allows all RobotCode
tools — CLI commands, analyze runs, and the language server — to
share the same cache regardless of where it is stored.
The VS Code extension automatically sets this variable in the
integrated terminal, so CLI commands find the correct cache
without any manual setup.
Cache clearing now operates on the database directly instead of
removing the directory, preventing errors when multiple processes
access the cache concurrently.ROBOTCODE_CACHE_DIR env var for cache path override1 parent 8fc8687 commit a778cd5
File tree
5 files changed
+22
-6
lines changed- packages
- analyze/src/robotcode/analyze/cache
- robot/src/robotcode/robot/diagnostics
- vscode-client/extension
5 files changed
+22
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
374 | 377 | | |
375 | 378 | | |
376 | 379 | | |
| 380 | + | |
| 381 | + | |
377 | 382 | | |
378 | 383 | | |
379 | 384 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
155 | 163 | | |
156 | 164 | | |
157 | 165 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
660 | 660 | | |
661 | 661 | | |
662 | 662 | | |
663 | | - | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
664 | 666 | | |
665 | 667 | | |
666 | 668 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
905 | 904 | | |
906 | 905 | | |
907 | 906 | | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
| 907 | + | |
| 908 | + | |
912 | 909 | | |
913 | 910 | | |
914 | 911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
| |||
0 commit comments