Skip to content

Commit 6959715

Browse files
committed
Move getCache request to standard function
Signed-off-by: worksofliam <[email protected]>
1 parent 9cd63e9 commit 6959715

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extension/server/src/connection.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ export function handleClientRequests() {
138138
connection.onRequest(`clearTableCache`, () => {
139139
parser.clearTableCache();
140140
});
141+
142+
connection.onRequest(`getCache`, (uri: string) => {
143+
return parser.getParsedCache(uri);
144+
});
141145
}
142146

143147
export interface BindingDirectory {

extension/server/src/providers/project/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ export async function initialise() {
5151
}
5252
})
5353
});
54-
55-
connection.onRequest(`getCache`, (uri: string) => {
56-
return parser.getParsedCache(uri);
57-
});
5854
}
5955

6056
async function loadWorkspace() {

0 commit comments

Comments
 (0)