Skip to content

Commit f1cf024

Browse files
committed
chore(language-server): implement reload()
1 parent 555178b commit f1cf024

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/language-server/lib/hybridModeProject.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ export function createHybridModeProjectProviderFactory(
7474
...simpleProjects.values(),
7575
]);
7676
},
77+
reload() {
78+
for (const project of [
79+
...tsconfigProjects.values(),
80+
...simpleProjects.values(),
81+
]) {
82+
project.then(p => p.dispose());
83+
}
84+
tsconfigProjects.clear();
85+
simpleProjects.clear();
86+
},
7787
};
7888

7989
function initialize(server: ServerBase) {

0 commit comments

Comments
 (0)