-
-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Labels
lspLanguage ServerLanguage Server
Description
What Git revision are you using?
v1.1.9
What operating system are you using, and which version?
- Linux / Ubuntu
- Linux / Other
- macOS
- Windows
Describe what the problem is?
Given the following code and a missing import for Dict
fn foo(
my_dict: Dict<k, v>
) -> whatever
The language-server correctly suggests to either import Dict
, or to replace it with its qualified version dict.Dict
. The latter, however, will get rid of the generic params <k, v>
; thus leading to another error since the type expects two generic params.
What should be the expected behavior?
Replacing inline with a qualified type should preserve any existing generic parameter.
Metadata
Metadata
Assignees
Labels
lspLanguage ServerLanguage Server
Type
Projects
Status
🔨 Todo