File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,6 @@ const main = async (args: DefaultedArgs): Promise<void> => {
102
102
throw new Error ( "Please pass in a password via the config file or $PASSWORD" )
103
103
}
104
104
105
- ipcMain . onDispose ( ( ) => {
106
- // TODO: register disposables
107
- } )
108
-
109
105
const [ app , server ] = await createApp ( args )
110
106
const serverAddress = ensureAddress ( server )
111
107
await register ( app , server , args )
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { arrayify, generateUuid } from "../common/util"
7
7
import { rootPath } from "./constants"
8
8
import { settings } from "./settings"
9
9
import { isFile } from "./util"
10
+ import { ipcMain } from "./wrapper"
10
11
11
12
export class VscodeProvider {
12
13
public readonly serverRootPath : string
@@ -16,6 +17,7 @@ export class VscodeProvider {
16
17
public constructor ( ) {
17
18
this . vsRootPath = path . resolve ( rootPath , "lib/vscode" )
18
19
this . serverRootPath = path . join ( this . vsRootPath , "out/vs/server" )
20
+ ipcMain . onDispose ( ( ) => this . dispose ( ) )
19
21
}
20
22
21
23
public async dispose ( ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments