Add SourceBaseApiParams to get_trigger_characters API

This commit is contained in:
hrsh7th
2021-08-25 11:29:04 +09:00
parent f7bb6f1c6e
commit d1b32f241f
2 changed files with 5 additions and 2 deletions

View File

@@ -197,7 +197,9 @@ end
---@return string[]
source.get_trigger_characters = function(self)
if self.source.get_trigger_characters then
return self.source:get_trigger_characters() or {}
return self.source:get_trigger_characters({
option = self:get_option(),
}) or {}
end
return {}
end