Commit ad48623
committed
fix(amazonq): remove duplicates from lsp getContextCommandPrompt
There are two types of context shown in the context list:
1. the ones by explicit @
2. the ones by @workspace
1) has relativePaths with start/end line being -1, 2) has relativePaths
with non -1 start/end lines,
1) is doing dedupe with 2) but 1) also needs to dedupe itself1 parent 997b3b7 commit ad48623
File tree
1 file changed
+3
-1
lines changed- packages/core/src/codewhispererChat/controllers/chat
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
| 1106 | + | |
1106 | 1107 | | |
1107 | | - | |
| 1108 | + | |
1108 | 1109 | | |
1109 | 1110 | | |
1110 | 1111 | | |
1111 | 1112 | | |
| 1113 | + | |
1112 | 1114 | | |
1113 | 1115 | | |
1114 | 1116 | | |
| |||
0 commit comments