fix(picker): print fetching data early
This commit is contained in:
parent
e3309e8f3c
commit
a7cd41712d
1 changed files with 2 additions and 2 deletions
|
|
@ -117,6 +117,8 @@ end
|
||||||
---@param contest_id string Contest identifier
|
---@param contest_id string Contest identifier
|
||||||
---@return cp.ProblemItem[]
|
---@return cp.ProblemItem[]
|
||||||
function M.get_problems_for_contest(platform, contest_id)
|
function M.get_problems_for_contest(platform, contest_id)
|
||||||
|
logger.log('loading contest problems...', vim.log.levels.INFO, true)
|
||||||
|
|
||||||
local problems = {}
|
local problems = {}
|
||||||
|
|
||||||
cache.load()
|
cache.load()
|
||||||
|
|
@ -132,8 +134,6 @@ function M.get_problems_for_contest(platform, contest_id)
|
||||||
return problems
|
return problems
|
||||||
end
|
end
|
||||||
|
|
||||||
logger.log('loading contest problems...', vim.log.levels.INFO, true)
|
|
||||||
|
|
||||||
if not utils.setup_python_env() then
|
if not utils.setup_python_env() then
|
||||||
return problems
|
return problems
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue