Why doesn't CompletionItem for std::thread include additionalTextEdits? #19998
jm-observer
started this conversation in
General
Replies: 2 comments
-
No, clients should never use anything in |
Beta Was this translation helpful? Give feedback.
0 replies
-
Does the completion item change after the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm developing a client that integrates with
rust-analyzer
, and I'm handlingCompletionItem
insertions.When I complete something like
thread
, I get aCompletionItem
that includes this field:However, the
CompletionItem
doesn't include anyadditionalTextEdits
to insertuse std::thread
;.My client does send
completionItem.resolveSupport.properties = ["additionalTextEdits"]
, and I also callcompletionItem/resolve
as needed.Is this intentional behavior? Under what conditions does rust-analyzer decide to provide
additionalTextEdits
instead ofdata.imports
? Should clients always handledata.imports
themselves?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions