Skip to content
Merged
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
5 changes: 3 additions & 2 deletions script/client.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
local fs = require 'bee.filesystem'
local nonil = require 'without-check-nil'
local util = require 'utility'
local lang = require 'language'
Expand Down Expand Up @@ -247,11 +248,11 @@ local function tryModifyRC(uri, finalChanges, create)
return false
end
local workspace = require 'workspace'
local path = workspace.getAbsolutePath(uri, '.luarc.json')
or workspace.getAbsolutePath(uri, '.luarc.jsonc')
local path = workspace.getAbsolutePath(uri, '.luarc.jsonc')
if not path then
return false
end
path = fs.exists(path) and path or workspace.getAbsolutePath(uri, '.luarc.json')
local buf = util.loadFile(path)
if not buf and not create then
return false
Expand Down