Skip to content

Commit e5852b2

Browse files
committed
avoid exitCalled notification
1 parent 0e2b7c3 commit e5852b2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Diff for: server/eslintServer.ts

-10
Original file line numberDiff line numberDiff line change
@@ -861,16 +861,6 @@ function getFilePath(documentOrUri: string | TextDocument | URI | undefined): st
861861
return getFileSystemPath(uri)
862862
}
863863

864-
const exitCalled = new NotificationType<[number, string]>('eslint/exitCalled')
865-
866-
const nodeExit = process.exit
867-
process.exit = ((code?: number): void => {
868-
const stack = new Error('stack')
869-
connection.sendNotification(exitCalled, [code ? code : 0, stack.stack])
870-
setTimeout(() => {
871-
nodeExit(code)
872-
}, 1000)
873-
}) as any
874864
process.on('uncaughtException', (error: any) => {
875865
let message: string | undefined
876866
if (error) {

0 commit comments

Comments
 (0)