fix: hide internal properties of config (#1036)

This commit is contained in:
yetone
2025-01-05 18:27:23 +08:00
committed by GitHub
parent 9895ce7681
commit 48fc35f978
5 changed files with 29 additions and 31 deletions

View File

@@ -183,7 +183,7 @@ M._stream = function(opts)
end
if not data then return end
vim.schedule(function()
if Config.options[Config.provider] == nil and Provider.parse_stream_data ~= nil then
if Config[Config.provider] == nil and Provider.parse_stream_data ~= nil then
if Provider.parse_response ~= nil then
Utils.warn(
"parse_stream_data and parse_response are mutually exclusive, and thus parse_response will be ignored. Make sure that you handle the incoming data correctly.",