summaryrefslogtreecommitdiff
path: root/script/workspace
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-01-23 01:27:10 +0800
committersumneko <sumneko@hotmail.com>2022-01-23 01:27:10 +0800
commit2ee33dade7af1129ec792e69c51c993d853da54a (patch)
tree3bfe589b03a0db4e9c6e28e8b45527555736b7ea /script/workspace
parent37d33caad5eca02ffa3ac0608ccfe13468bdd22e (diff)
downloadlua-language-server-2ee33dade7af1129ec792e69c51c993d853da54a.zip
fix diagnostics
Diffstat (limited to 'script/workspace')
-rw-r--r--script/workspace/scope.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/workspace/scope.lua b/script/workspace/scope.lua
index a9e8447e..5c9a1756 100644
--- a/script/workspace/scope.lua
+++ b/script/workspace/scope.lua
@@ -69,6 +69,11 @@ function mt:get(k)
return self._data[k]
end
+---@return string
+function mt:getName()
+ return self.uri or ('<' .. self.type .. '>')
+end
+
---@param scopeType scope.type
---@return scope
local function createScope(scopeType)