Skip to content

Commit

Permalink
Set-up notification handler from server to client
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincenzo Barbuto authored and Vincenzo Barbuto committed Apr 23, 2024
1 parent 6428a3d commit f1279d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lfview/lf-data-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export class LFDataProvider implements vscode.TreeDataProvider<LFDataProviderNod
private context: vscode.ExtensionContext
) {
// vscode.workspace.onDidChangeWorkspaceFolders(()
client.onReady().then(() => {
client.onNotification('update/example', (message) => {
console.log("*******" + message + "*******")
})
})
}
onDidChangeTreeData?: vscode.Event<void | LFDataProviderNode | LFDataProviderNode[]>
getTreeItem(element: LFDataProviderNode): vscode.TreeItem | Thenable<vscode.TreeItem> {
Expand Down

0 comments on commit f1279d6

Please sign in to comment.