diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-08 13:12:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-08 13:12:31 +0800 |
commit | 3771e70b48e9a088cbdc11a8b952d525eea1e7c9 (patch) | |
tree | 065b1c5501dfaf1aef5c484f6128bc61cc75d054 /test/hover | |
parent | b8c5db4d443e5a0c638d964104d8966f837eeb6a (diff) | |
download | lua-language-server-3771e70b48e9a088cbdc11a8b952d525eea1e7c9.zip |
cleanup
Diffstat (limited to 'test/hover')
-rw-r--r-- | test/hover/init.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 61ba392e..5ee4db51 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1787,3 +1787,25 @@ local <?x?> = 1 // 2 local x: integer = 1 ]] config.set(nil, 'Lua.runtime.nonstandardSymbol', {}) + +config.set(nil, 'Lua.hover.expandAlias', false) +TEST [[ +---@alias uri string + +---@type uri +local <?uri?> +]] +[[ +local uri: uri +]] + +config.set(nil, 'Lua.hover.expandAlias', true) +TEST [[ +---@alias uri string + +---@type uri +local <?uri?> +]] +[[ +local uri: string +]] |