Deprecated code completions crash #8310
Labels
bug
bugs found in the application
help wanted
issues meant to be picked up, require help
vscode
issues related to VSCode compatibility
Bug Description:
When providing code completion result with deprecated: true property there is an error on code completion and no suggestions are displayed.
Steps to Reproduce:
lsp-sample-deprecated.zip contains the vscode extension source code for reference.
vsix.zip contains two vsix files lsp-sample-deprecated-item-1.0.0.vsix that provides deprecated code completion. It works on vscode but not on theia. The other one provide code completions without deprecated items and it work on both.
Nothing works and the browser console shows this error:
Uncaught Error: Cannot read property 'Deprecated' of undefined
TypeError: Cannot read property 'Deprecated' of undefined
at asCompletionItem (c:\Users\i066470\AppData\Local\Temp\vscode-unpacked\lsp-sample-deprecated-item-1.0.0.vsix\extension\client\node_modules\vscode-languageclient\lib\protocolConverter.js:244:50)
at Array.map ()
at asCompletionResult (c:\Users\i066470\AppData\Local\Temp\vscode-unpacked\lsp-sample-deprecated-item-1.0.0.vsix\extension\client\node_modules\vscode-languageclient\lib\protocolConverter.js:171:26)
at http://localhost:3000/vs/editor/editor.main.js:1532:31
On VS code it works like this:
Additional Information
The text was updated successfully, but these errors were encountered: