Skip to content

Commit

Permalink
Bug Fix - wait until LS is ready to handle requests
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 f5b9fc6 commit 6428a3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules/*
out/*
.gradle/*
__pycache__/*
.DS_Store
7 changes: 4 additions & 3 deletions src/lfview/lf-data-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ export class LFDataProvider implements vscode.TreeDataProvider<LFDataProviderNod
}
getChildren(element?: LFDataProviderNode): vscode.ProviderResult<LFDataProviderNode[]> {
if (!element) {
this.client.sendRequest('generator/getLibraryReactors').then(message => {

console.log("+++++++++++++++++++++++++" + message)
this.client.onReady().then(() => {
this.client.sendRequest('generator/getLibraryReactors').then(message => {
console.log("+++++++++++++++++++++++++" + message)
})
})
let result = []
return vscode.workspace.findFiles('**/lib/*.lf').then(files => {
Expand Down

0 comments on commit 6428a3d

Please sign in to comment.