Commit 475dfc8
authored
fix(amazonq): fix issue where history load crashes LSP (#5690)
Chat UI bundle contains unicode, which is incorrectly loaded as ASCII when packaged as a webpack bundle.
On Flare LSP request `aws/chat/openTab`, we forward the message to Mynah UI, which subsequently fails if the body contains Java-formatted markdown as it triggers the incorrectly parsed unicode.
The Flare [chat wrapper](https://github.com/aws/language-servers/blame/547ecafb561fd3d6bf7a264def829160901dd23a/chat-client/src/client/mynahUi.ts#L989-L991) subsequently does not respond with the `onOpenTab` callback and the LSP times out and exits the process.
Fix by explicitly loading assets as UTF-81 parent ffe192f commit 475dfc8
File tree
1 file changed
+4
-10
lines changed- plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview
1 file changed
+4
-10
lines changedLines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 72 | | |
79 | 73 | | |
80 | 74 | | |
| |||
118 | 112 | | |
119 | 113 | | |
120 | 114 | | |
| 115 | + | |
121 | 116 | | |
122 | 117 | | |
123 | | - | |
124 | | - | |
| 118 | + | |
| 119 | + | |
125 | 120 | | |
126 | 121 | | |
127 | 122 | | |
| |||
155 | 150 | | |
156 | 151 | | |
157 | 152 | | |
158 | | - | |
159 | | - | |
| 153 | + | |
160 | 154 | | |
161 | 155 | | |
162 | 156 | | |
| |||
0 commit comments