aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/ctx.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/ctx.ts')
-rw-r--r--editors/code/src/ctx.ts5
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
89export type Cmd = (...args: any[]) => any; 94export type Cmd = (...args: any[]) => any;