Skip to content

[Feature Request] extra hooks: onSubmitSuccess, onSubmitFailure, onTestSuccess, onTestFailiure #201

@jingyi-zhao-01

Description

@jingyi-zhao-01

i see the hooks in lua script can be potentially extended to integrate more functionalities

hooks = {
    ---@type fun(question: lc.ui.Question, buffer, testcases_passed, testcased_broken)[]
    ["on_submit_success"] = {
      ## hook up external code that process situation when a submission success
    },

    ---@type fun(question: lc.ui.Question, buffer, testcases_passed, testcased_broken)[]
    ["on_submit_failure"] = {
      ## hook up external code that does analysis when a submission failes,
    },


    ---similar 


},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions