NightrainsRbx / RobloxLsp

Roblox Luau Language Server based on Lua by sumneko.
https://devforum.roblox.com/t/roblox-lsp-full-intellisense-for-roblox-and-luau/717745
MIT License
218 stars 53 forks source link

Singleton type autofill for function parameter doesn't show #221

Closed Hezaus closed 1 year ago

Hezaus commented 1 year ago

Singleton type autofill for function parameter is currently not working as intended. Reproduction step:

local function Singleton(Parameter : "1" | "2") end
Singleton("") --Supposed to show in ""

Image of the problem: image

Although shows a warning but without turning Type Checking Mode setting to Strict, won't know which argument to put in. image

Hezaus commented 1 year ago

Installing luau lsp fix this issue