Skip to content

Commit

Permalink
fix #1134 supports untitled lua files
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed May 24, 2022
1 parent f0f80fd commit 8a2de63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* `FIX` hover: can not union `table` with other basic types
* `FIX` [#1125](https://github.com/sumneko/lua-language-server/issues/1125)
* `FIX` [#1131](https://github.com/sumneko/lua-language-server/issues/1131)
* `FIX` [#1134](https://github.com/sumneko/lua-language-server/issues/1134)

## 3.2.3
`2022-5-16`
Expand Down
4 changes: 2 additions & 2 deletions script/provider/provider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8a2de63

Please sign in to comment.