Skip to content

Commit bf8b18f

Browse files
committed
fix #952
1 parent 1f8e4ed commit bf8b18f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 2.6.5
44
* `FIX` [#934](https://github.com/sumneko/lua-language-server/issues/934)
5+
* `FIX` [#952](https://github.com/sumneko/lua-language-server/issues/952)
56

67
## 2.6.4
78
`2022-2-9`

script/client.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ local function tryModifyRC(uri, finalChanges, create)
248248
if not buf and not create then
249249
return false
250250
end
251-
local scp = scope.getScope(uri)
252-
local rc = scp:get('lastRCConfig') or {
251+
local loader = require 'config.loader'
252+
local rc = loader.loadRCConfig(uri, path) or {
253253
['$schema'] = lang.id == 'zh-cn'
254254
and [[https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema-zh-cn.json]]
255255
or [[https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json]]

script/library.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ local function apply3rd(uri, cfg, onlyMemory)
336336
changes[#changes+1] = {
337337
key = change.key,
338338
action = change.action,
339+
prop = change.prop,
339340
value = change.value,
340341
uri = uri,
341342
}

0 commit comments

Comments
 (0)