mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Refactor status activation
This commit is contained in:
parent
1327aed7f6
commit
e4b588868f
5 changed files with 36 additions and 43 deletions
|
@ -84,6 +84,11 @@ export class Ctx {
|
|||
}
|
||||
throw 'unreachable';
|
||||
}
|
||||
|
||||
onNotification(method: string, handler: lc.GenericNotificationHandler) {
|
||||
this.client.onReady()
|
||||
.then(() => this.client.onNotification(method, handler))
|
||||
}
|
||||
}
|
||||
|
||||
export type Cmd = (...args: any[]) => any;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue