Allow to take the full SourceConfig from source API (#561)
* - SourceConfig.opts -> SourceConfig.option - Add SourceConfig.trigger_characters - Allow accessing full SourceConfig from source * fmt&lint
This commit is contained in:
@@ -48,4 +48,13 @@ describe('misc', function()
|
||||
})
|
||||
assert.are.equal(merged.a, nil)
|
||||
end)
|
||||
|
||||
it('readonly', function()
|
||||
local o = { a = 1, b = 2 }
|
||||
local r = misc.readonly(o)
|
||||
assert.are.equal(r.a, 1)
|
||||
assert.has_error(function()
|
||||
r.a = 5
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user