Skip to content

Commit a405a90

Browse files
committed
progress report
1 parent a40a314 commit a405a90

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/extension.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,14 @@ function startClient() {
7676
client = new LanguageClient("EmmyLua", "EmmyLua plugin for vscode.", serverOptions, clientOptions);
7777
client.onReady().then(() => {
7878
console.log("client ready");
79-
client.onNotification(new NotificationType<notifications.IAnnotator, void>("annotator"), (data) => {
79+
client.onNotification("emmy/annotator", (data: notifications.IAnnotator) => {
8080
if (activeEditor) {
8181
Annotator.updateAnnotators(activeEditor, [data]);
8282
}
8383
});
84+
client.onNotification("emmy/progressReport", (d: notifications.IProgressReport) => {
85+
console.log("---->>>" + d.text);
86+
});
8487
});
8588
let disposable = client.start();
8689
savedContext.subscriptions.push(disposable);

src/notifications.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ export enum AnnotatorType {
77
export interface IAnnotator {
88
ranges: vscode.Range[];
99
type: AnnotatorType;
10+
}
11+
12+
export interface IProgressReport {
13+
text: String;
1014
}

0 commit comments

Comments
 (0)