Is it possible to write a python or bash script such that when I run it from the integrated terminal in vscode it closes the current window?
This may sound useless, so let me explain one use case in case you're wondering why I need to do this, and maybe you also have other suggestions to achieve it. I have a python script that allows me to easily rename a github repo name using github's api: something like rename-github-repo newname
, which automatically detects the git project directory, makes the changes on github via the api, and renames the directory in my local filesystem as well. After the directory rename, my current vscode window is messed up because it references the old directory, so I'd like to close it and open a new one with the new directory as part of the script rename-github-repo
so I don't have to do it manually.