fix(ci): type check
This commit is contained in:
parent
fa2660455a
commit
91864b2992
3 changed files with 6 additions and 6 deletions
|
|
@ -10,9 +10,9 @@ https://github.com/user-attachments/assets/50b19481-8e6d-47b4-bebc-15e16c61a9c9
|
|||
|
||||
- **Multi-platform support**: AtCoder, Codeforces, CSES with consistent interface
|
||||
- **Automatic problem setup**: Scrape test cases and metadata in seconds
|
||||
- **Rich test output**: ANSI color support for compiler errors and program output
|
||||
- **Language agnostic**: Works with any compiled language
|
||||
- **Diff viewer**: Compare expected vs actual output with precision
|
||||
- **Rich test output**: 256 color ANSI support for compiler errors and program output
|
||||
- **Language agnostic**: Works with any language
|
||||
- **Diff viewer**: Compare expected vs actual output with 3 diff modes
|
||||
|
||||
## Optional Dependencies
|
||||
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ function M.handle_command(opts)
|
|||
if cmd.action == 'interact' then
|
||||
ui.toggle_interactive()
|
||||
elseif cmd.action == 'run' then
|
||||
ui.toggle_run_panel({ debug = false })
|
||||
ui.toggle_run_panel()
|
||||
elseif cmd.action == 'debug' then
|
||||
ui.toggle_run_panel({ debug = true })
|
||||
elseif cmd.action == 'next' then
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ function M.toggle_interactive()
|
|||
state.set_active_panel('interactive')
|
||||
end
|
||||
|
||||
---@param run_opts RunOpts
|
||||
---@param run_opts? RunOpts
|
||||
function M.toggle_run_panel(run_opts)
|
||||
if state.get_active_panel() == 'run' then
|
||||
if current_diff_layout then
|
||||
|
|
@ -274,7 +274,7 @@ function M.toggle_run_panel(run_opts)
|
|||
config.hooks.before_run(state)
|
||||
end)
|
||||
end
|
||||
if run_opts.debug and config.hooks and config.hooks.before_debug then
|
||||
if run_opts and run_opts.debug and config.hooks and config.hooks.before_debug then
|
||||
vim.schedule_wrap(function()
|
||||
config.hooks.before_debug(state)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue