fix(picker): use consisten messaging

This commit is contained in:
Barrett Ruth 2025-09-21 12:21:40 -04:00
parent 0938b9bbd6
commit a827d4f67c
4 changed files with 14 additions and 4 deletions

View file

@ -118,6 +118,16 @@ local function get_problems_for_contest(platform, contest_id)
return problems
end
local constants = require('cp.constants')
local platform_display_name = constants.PLATFORM_DISPLAY_NAMES[platform] or platform
logger.log(
('Scraping %s %s for problems, this may take a few seconds...'):format(
platform_display_name,
contest_id
),
vim.log.levels.INFO
)
local metadata_result = scrape.scrape_contest_metadata(platform, contest_id)
if not metadata_result.success then
logger.log(

View file

@ -34,7 +34,7 @@ function M.setup_python_env()
logger.log('failed to setup Python environment: ' .. result.stderr, vim.log.levels.ERROR)
return false
end
logger.log('python environment setup complete')
logger.log('Python environment setup complete')
end
python_env_setup = true