[Improvement]: Provide the from
clause snippet when a collection is associated
#42392
Labels
Area/Completion
Issues related to Language Server Auto Completions
Priority/Low
Team/LanguageServer
Language Server Implementation related issues. #Compiler
Type/Improvement
Description
Provide the
from clause
snippet when the user writescollectionVariable.from
as well, similar to how the LS provides theforeach
snippet for such cases.Describe your problem(s)
The
foreach
snippet produces the following code.Similarly, we can provide a such snippet when the user type
arr.from
as well.Describe your solution(s)
The respective completion item should be provided for the following cursor position.
Similar to how the LS provides the
form clause
snippet for thefrom
keyword, it can produce the same snippet with a collection attached to it. For instance,arr.from
can be converted tofrom int item in arr
.Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: