Kill VS Code when process exits
This is to ensure it doesn't hang around.
This commit is contained in:
parent
34225e2bdf
commit
396af23842
|
@ -102,10 +102,6 @@ const main = async (args: DefaultedArgs): Promise<void> => {
|
|||
throw new Error("Please pass in a password via the config file or $PASSWORD")
|
||||
}
|
||||
|
||||
ipcMain.onDispose(() => {
|
||||
// TODO: register disposables
|
||||
})
|
||||
|
||||
const [app, server] = await createApp(args)
|
||||
const serverAddress = ensureAddress(server)
|
||||
await register(app, server, args)
|
||||
|
|
|
@ -7,6 +7,7 @@ import { arrayify, generateUuid } from "../common/util"
|
|||
import { rootPath } from "./constants"
|
||||
import { settings } from "./settings"
|
||||
import { isFile } from "./util"
|
||||
import { ipcMain } from "./wrapper"
|
||||
|
||||
export class VscodeProvider {
|
||||
public readonly serverRootPath: string
|
||||
|
@ -16,6 +17,7 @@ export class VscodeProvider {
|
|||
public constructor() {
|
||||
this.vsRootPath = path.resolve(rootPath, "lib/vscode")
|
||||
this.serverRootPath = path.join(this.vsRootPath, "out/vs/server")
|
||||
ipcMain.onDispose(() => this.dispose())
|
||||
}
|
||||
|
||||
public async dispose(): Promise<void> {
|
||||
|
|
Loading…
Reference in New Issue