summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-04 02:06:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-04 02:06:48 +0800
commita310a975e80978714685586c0ff4fcf5aeb6e746 (patch)
treee8110a30390a08ea3c85ef527930839208de582c /script/files.lua
parent2dfed8a4aabd66c98777d37245ef5482b5ffdd48 (diff)
downloadlua-language-server-a310a975e80978714685586c0ff4fcf5aeb6e746.zip
stash
Diffstat (limited to 'script/files.lua')
-rw-r--r--script/files.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/files.lua b/script/files.lua
index 3b2b120b..f3a11185 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -15,6 +15,7 @@ local encoder = require 'encoder'
local scope = require 'workspace.scope'
---@class file
+---@field uri uri
---@field content string
---@field _ref? integer
---@field trusted? boolean
@@ -148,6 +149,9 @@ function m.exists(uri)
return m.fileMap[uri] ~= nil
end
+---@param file file
+---@param text string
+---@return string
local function pluginOnSetText(file, text)
local plugin = require 'plugin'
file._diffInfo = nil