Skip to content

Commit 5381bf4

Browse files
committed
fix async of text
1 parent 86557f9 commit 5381bf4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script/provider/provider.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ m.register 'textDocument/didChange' {
260260
---@async
261261
function (params)
262262
local doc = params.textDocument
263+
local scheme = furi.split(doc.uri)
264+
if scheme ~= 'file' then
265+
return
266+
end
263267
local changes = params.contentChanges
264268
local uri = files.getRealUri(doc.uri)
265269
workspace.awaitReady(uri)

0 commit comments

Comments
 (0)