Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finishing a powershell job opens a "terminal" #223

Open
MordechaiHadad opened this issue Aug 29, 2021 · 0 comments
Open

Finishing a powershell job opens a "terminal" #223

MordechaiHadad opened this issue Aug 29, 2021 · 0 comments

Comments

@MordechaiHadad
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant