I am looking for a way to reload VS Code to activate extensions through code. Ideally, I would like to do this using the VS Code API but I haven't been able to find any information. There a Reload command available through the command palette which gives the desired result. Does anyone know of a way to reload through Typescript or Javascript? I've also tried to use the command line as an option but it appears I need to load a new window to activate the extension which still leaves the active window open. I've added a screenshot for context. Thanks in advance.
I meant to resolve this awhile back, thanks for the reminder. I used a combination of workbench.action.closeWindow and workbench.action.newWindow to achieve the desired result.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.