Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
new Disposable(() => ipc.removeListener('enable-shortcuts', enableShortcuts))
)
new Disposable(() => ipc.removeListener('disable-shortcuts', disableShortcuts))
)
await new Promise(resolve => {
this.pty.removeAllListeners('data')
this.pty.removeAllListeners('exit')
ipc.removeListener(`pty-resize-${this.sessionId}`, this.handleResize)
ipc.removeListener(`pty-write-${this.sessionId}`, this.handleWrite)
this.pty.destroy()
resolve()
})
}
await new Promise(resolve => {
this.pty.removeAllListeners('data')
this.pty.removeAllListeners('exit')
ipc.removeListener(`pty-resize-${this.sessionId}`, this.handleResize)
ipc.removeListener(`pty-write-${this.sessionId}`, this.handleWrite)
this.pty.destroy()
resolve()
})
}