Skip to content

Commit

Permalink
chore(language-server): implement reload()
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed May 9, 2024
1 parent 555178b commit f1cf024
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/language-server/lib/hybridModeProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ export function createHybridModeProjectProviderFactory(
...simpleProjects.values(),
]);
},
reload() {
for (const project of [
...tsconfigProjects.values(),
...simpleProjects.values(),
]) {
project.then(p => p.dispose());
}
tsconfigProjects.clear();
simpleProjects.clear();
},
};

function initialize(server: ServerBase) {
Expand Down

0 comments on commit f1cf024

Please sign in to comment.