Skip to content

Finishing a powershell job opens a "terminal" #223

Open
@MordechaiHadad

Description

@MordechaiHadad

So just like doing some bash jobs i want to open a new powershell job, but unlike bash i get a weird behavior where it does whatever job i want it to BUT opens a "terminal"? at the end:
hi
When i write exit to exit this "terminal" it literally closes my terminal tab... why?

  • Code
function lspmanager.test(hi)
    job:new({
        command = 'powershell',
        cwd = '.',
        args = {'-Command', [[
        New-Item -Name "hi" -ItemType "directory"
        exit 0
        ]]},
        on_exit = function (j, return_val)
            if return_val == 0 then
                print("lmao")
            end
        end
    }):start()
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions