Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased
<!-- Add all new changes here. They will be moved under a version at release -->
* `FIX` A regression related to type narrow and generic param introduced since `v3.10.1`
* `FIX` Parse storagePath to improve reliability of resolving ${addons} placeholder
* `FIX` Reference should also look in tablefield
* `FIX` Determine that the index of `{...}` is an integer when iterating

Expand Down
6 changes: 3 additions & 3 deletions script/files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -919,10 +919,10 @@ function m.resolvePathPlaceholders(path)
if addonsPath then
return addonsPath
end
local client = require 'client'
local storagePath = client.getOption('storagePath')
local client = require("client")
local storagePath = client.getOption("storagePath")
if storagePath then
addonsPath = storagePath .. "/addonManager/addons"
addonsPath = (fs.path(storagePath) / "addonManager" / "addons"):string()
else
-- Common path across OSes
local dataPath = "User/globalStorage/sumneko.lua/addonManager/addons"
Expand Down
Loading