Commit 0b6ee2b
authored
chat: expose toolResultError as boolean flag (#298320)
* chat: expose toolResultError as boolean flag
Converts toolResultError to support both string and boolean types,
allowing it to be used as a simple error flag when the specific error
message is not needed. The conversion to boolean is safe because the
only usage is in a truthy check.
- Updates IToolResult interface to accept string | boolean for toolResultError
- Adds conversion logic in extHostTypeConverters for boolean mapping
- Passes the error flag through the main thread language model tools
Refs #298226
(Commit message generated by Copilot)
* fix1 parent 4a32ff3 commit 0b6ee2b
File tree
4 files changed
+8
-3
lines changed- src/vs/workbench
- api
- browser
- common
- contrib/chat
- common/tools
- test/browser/tools
4 files changed
+8
-3
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3873 | 3873 | | |
3874 | 3874 | | |
3875 | 3875 | | |
| 3876 | + | |
| 3877 | + | |
| 3878 | + | |
3876 | 3879 | | |
3877 | 3880 | | |
3878 | 3881 | | |
| |||
3938 | 3941 | | |
3939 | 3942 | | |
3940 | 3943 | | |
| 3944 | + | |
3941 | 3945 | | |
3942 | 3946 | | |
3943 | 3947 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3905 | 3905 | | |
3906 | 3906 | | |
3907 | 3907 | | |
3908 | | - | |
| 3908 | + | |
3909 | 3909 | | |
3910 | 3910 | | |
3911 | 3911 | | |
| |||
0 commit comments