You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or maybe a different change would be to add something to the spec that allows the combination of data. The main goal is to dedupe data on every completionItem.
The spec currently states that if a item defines items available in the items default it is a replace operation and not a merge operation. So changing the code is not an option since it could break existing users.
In Pylance, we return a lot of duplicate data in our completion list. We'd like to use the new
itemDefaults
for completions.However, some of the data is not duplicated. Only parts of it. But if we send back itemDefaults, they're not combined with the data on each item.
Here's an example completion result:
When a resolve happens (if we send the data this way), the
filePath
,position
, andworkspacePath
are lost.Resolve completionItem:
I believe that's because this line here picks one or the other:
vscode-languageserver-node/client/src/common/protocolConverter.ts
Line 591 in 4b77bb4
Would it be a breaking change to change this line in the protocolConverter.ts to something like this instead?
If that's agreeable, I can submit a PR. Thanks.
The text was updated successfully, but these errors were encountered: