summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 08b6ca93..ae99065e 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -238,7 +238,7 @@ m.register 'textDocument/didOpen' {
function (params)
local doc = params.textDocument
local scheme = furi.split(doc.uri)
- if scheme ~= 'file' then
+ if scheme ~= 'file' and scheme ~= 'untitled' then
return
end
local uri = files.getRealUri(doc.uri)
@@ -267,7 +267,7 @@ m.register 'textDocument/didChange' {
function (params)
local doc = params.textDocument
local scheme = furi.split(doc.uri)
- if scheme ~= 'file' then
+ if scheme ~= 'file' and scheme ~= 'untitled' then
return
end
local changes = params.contentChanges