Skip to content

Commit 2c884a6

Browse files
authored
Merge pull request #3415 from D4isDAVID/fix/namestyle-config
Fix name-style provider not using URI when loading config
2 parents d0d7ec2 + e28c42b commit 2c884a6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

changelog.md

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

33
## Unreleased
44
<!-- Add all new changes here. They will be moved under a version at release -->
5+
* `FIX` Fix initial `nameStyle.config` not getting loaded in the appropriate workspace.
56

67
## 3.18.2
78
* `CHG` `duplicate-set-field` diagnostic now supports linked suppression: when any occurrence of a duplicate field is suppressed with `---@diagnostic disable` or `---@diagnostic disable-next-line`, all warnings for that field name will be suppressed

script/provider/name-style.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ m.loaded = false
1111

1212
function m.nameStyleCheck(uri, text)
1313
if not m.loaded then
14-
local value = config.get(nil, "Lua.nameStyle.config")
14+
local value = config.get(uri, "Lua.nameStyle.config")
1515
codeFormat.update_name_style_config(value)
1616
m.loaded = true
1717
end

0 commit comments

Comments
 (0)