summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/matcher/hover.lua23
1 files changed, 2 insertions, 21 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua
index 71b7a6a0..ae2d8622 100644
--- a/server/src/matcher/hover.lua
+++ b/server/src/matcher/hover.lua
@@ -323,30 +323,11 @@ local function buildValueSimpleHover(result, source)
if class then
valueType = class
end
-
- local resType = result.type
- if resType == 'field' then
- local field = result
- local stack = 0
- while field.parent do
- field = field.parent
- stack = stack + 1
- end
- if field.value.ENV then
- if stack > 1 then
- resType = 'global field'
- else
- resType = 'global'
- end
- else
- resType = 'local field'
- end
- end
return ([[
```lua
-%s: %s
+%s
```
-]]):format(resType, valueType)
+]]):format(valueType)
end
local function getValueHover(result, source)