summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
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