diff options
author | Aleksey Kladov <[email protected]> | 2019-12-31 16:22:43 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-31 16:22:43 +0000 |
commit | e4b588868f822b9c200a8ce77d24bfab5aeca4b8 (patch) | |
tree | 6241f2088d0b1d8eeae9cceef4aee74a48d31993 /editors/code/src/ctx.ts | |
parent | 1327aed7f6289043091aa9179282030c6f13ddbe (diff) |
Refactor status activation
Diffstat (limited to 'editors/code/src/ctx.ts')
-rw-r--r-- | editors/code/src/ctx.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index 693ce05ed..0e62a3a85 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts | |||
@@ -84,6 +84,11 @@ export class Ctx { | |||
84 | } | 84 | } |
85 | throw 'unreachable'; | 85 | throw 'unreachable'; |
86 | } | 86 | } |
87 | |||
88 | onNotification(method: string, handler: lc.GenericNotificationHandler) { | ||
89 | this.client.onReady() | ||
90 | .then(() => this.client.onNotification(method, handler)) | ||
91 | } | ||
87 | } | 92 | } |
88 | 93 | ||
89 | export type Cmd = (...args: any[]) => any; | 94 | export type Cmd = (...args: any[]) => any; |